Sunday 6 January 2019

Filled Under:

Celsius To Fahrenheit with c program[c programming examples with output]

C programming examples with output

Celsius To Fahrenheit
Program

#include<stdio.h>
#include<conio.h>
void main()
{
     float c,f;
     clrscr();
     printf("Enter temperature in centigrade: ")
     scanf("%f",&c);
     f=(1.8*c)+32;
     printf("Temperature in Fahrenheit= %f",f);
     getch();
}

Output:
Enter temp in centigrade:100
Temperature in Fahrenheit=212

0 komentar:

Post a Comment