<< Home | <<C Programs Home



C PROGRAMS CONVERT TEMPERATURE FROM DEGREE CELCIUS TO DEGREE FAHRENHEIT

Page<< C Programs Home
Page<< C Programs Home
  

C Program :

Given temp of a city in deg. Celcius. Write a prog. to convert it into deg. Fahrenheit.

C Programming -->

#include<stdio.h> #include<conio.h> main() { iut c; float f; clrscr(); printf("enter temp in degree celcius"); scanf("%d",&c); f=(float)9/5*c+ 32; /* type casting*/ printf("\n temp in deg. celcius=%d C and in deg. fah =%fF",c,f); getch(); }
Page<< C Programs Home



 
Copyright © 2006-2012 ExamBlast.com Last Updated 08-April-2012