// this is a C program that read temperature in celsius and display in fahrenheit scale.
#include<stdio.h>
#include<conio.h>

    void main()
     {
        float f,c;
       clrscr();
       printf("Enter temperature in celcius :");
       scanf("%f",&c);
       f=(1.8*c+32);
       printf("\n Celcius :%f",c);
       printf("\nFahrenheit :%f",f);
       getch();
    }

0 comments:

Post a Comment

If you have any confusion, Please leave a comment. I will assist you. Do not include any URL in comments.

 
Top