Help?

}This C++ question is related to Temperatures and , i was wondering if anyone you will help me on this.

Our task is to :

Write a well-documented C program that prints out a table of temperatures in
Celsius, from 0 to 100, in steps of 5 degrees, with the equivalent Fahrenheit.
To convert temperatures from Celsius to Fahrenheit use the equation:
Temp(F) = Temp(C)*9/5 + 32

Include headings on the columns of figures.

Use the following formatting in your printf to produce a tabulated output:
Printf(“%4.1f \t %4.1f\n”, Cent, Fahr);
This format will print each variable in a fieldwidth of 4 digits, with one place of
decimal. The ‘\t’ inserts a tab to space the columns.


This is our code, but for some reason its not working.
#include<stdio.h>
void main()
{
int Cent=1, Fahr=1;
int Temp;
int F;
int C;
for(Cent<=100, Cent++);
printf("%4.1f \t %4.1f\n", Cent Fahr);
Temp(F) = Temp(C)*9/5 + 32;
}

help please?
This C++ question is related to Temperatures

Your code is in C and not in C++.
Topic archived. No new replies allowed.