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

Recommended Answers

All 3 Replies

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;
}

Celcius to Fahrenheit conversion formula can be found at this link.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.