Design a C program that will convert temperature values from degrees Celsius to degrees Fahrenheit. The user must enter a start and a finish value, together with a step value. The program must convert all temperatures beginning with the start value at the given step interval.
Use the …for()… statement to solve this problem.

10 50.0
12 53.6
14 57.2
16 60.8

Edited by pritaeas: Moved to C

3 Years
Discussion Span
Last Post by BobS0327

To get you started ...

pseudocode/comments could look something like the following ...

#include <stdio.h>

int main()
   // declare variables

   // input with prompt to user, the lower starting value
   // input ...                , the upper ending value
   // input ...                , the 'step' value

   // using a for loop ... from startVal to endVal
   // calculate and output a table of corresponding values

   return 0;

Edited by David W

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.