PROCEDURE:-
CODE:-
#include<stdio.h>
void main()
{
float c,f;
printf(“enter a value in celcious\n”);
scanf(“%f”,&c);
f=(9.0/5)*c+32;
printf(“temperature in farenheit is %f”,f);
}
Input:- enter a value in celcious
35
Output:- temperature in farenheit is 95.0000
- input value for celcious
- find farenheit value with the formulae (9/5)c+32
- print the above result
CODE:-
#include<stdio.h>
void main()
{
float c,f;
printf(“enter a value in celcious\n”);
scanf(“%f”,&c);
f=(9.0/5)*c+32;
printf(“temperature in farenheit is %f”,f);
}
Input:- enter a value in celcious
35
Output:- temperature in farenheit is 95.0000
Comments
Post a Comment