Easy learn C program in c language
Q.Write a program to convert temperature in celcius to Farenhite.
Ans.In this program we simply convert temperature in celcius to Farenhite. So there are some steps as given blew:-
formula ⇒ F=(9*c)/5+32
Now start--
#include<stdio.h>
#include<conio.h>
void main()
{
int f,c;
printf("Enter the temperature in Celcius\n);
scanf("%d",&c);
f=(9*c)/5+32;
printf("F=%d",f);
getch();
}
Output is:-
Enter the temperature in Celcius
45
F=113
If you any query then you can ask in comment section.
THANK YOU.
Q.Write a program to convert temperature in celcius to Farenhite.
Ans.In this program we simply convert temperature in celcius to Farenhite. So there are some steps as given blew:-
formula ⇒ F=(9*c)/5+32
Now start--
#include<stdio.h>
#include<conio.h>
void main()
{
int f,c;
printf("Enter the temperature in Celcius\n);
scanf("%d",&c);
f=(9*c)/5+32;
printf("F=%d",f);
getch();
}
Output is:-
Enter the temperature in Celcius
45
F=113
If you any query then you can ask in comment section.
THANK YOU.
Comments
Post a Comment