j

Monday, 2 November 2015

Write a program that gets temperature from the user in Celsius and convert it into Fahtenheit



#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int c;
float f;
printf("Enter temperature in celsius ::");
scanf(“%d”,&c);
f=9/5*(c+32);
printf("Temperature in fahrenheit is %f",f);
getch();
}

Subscribe to this Blog via Email :