Search This Blog

Sep 23, 2013

C program to input tempreature in celsious & to print its faherenheit equavilent

/*write a program to input tempreature in celsious & to print its faherenheit equavilent*/
#include<conio.h>
#include<stdio.h>
void main()
{
int c;
float f;
clrscr();
printf("Enter the temperature in celsious: ");
scanf("%d",&c);
f=(c*(9/5))+32;
printf("\nYour tempreature in fahrenheit= %.2f",f);
getch();
}

No comments:

Post a Comment