This is the program that will print and convert from 1 to 10 Fahrenheit to degree Celsius using the "WHILE LOOP" ,output will be the simple.
C Program:-
#include<stdio.h>
#include<conio.h>
void main(void)
{
int farinhiet=1;
float degree;
clrscr();
while(farinhiet<=10)
{
degree=(farinhiet-32)*5/9;
printf("\n\nfarinhiet=%d degree=%f ",farinhiet,degree);
farinhiet++;
}
getch();
}
No comments:
Post a Comment