Skip to main content

templib

Challenge on lesson: Checkpoint: Modules

Implement public double c_to_f(double c) (c*9/5+32) and public double f_to_c(double f) ((f-32)*5/9), plus public int comfy_count(const double *cs, int n) counting temperatures within [18.0, 26.0] inclusive. Use whatever static helpers you like.

Difficulty: beginner

Back to lesson: Checkpoint: Modules