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