C Programming Awareness and Practice
A Student Effort .... By Shshank Singhal Ajmer, Rajasthan, India
Pages
HOME
BASIC
RECURSION
ARRAY
STRINGS
CONVERSIONS
Q. Convert Celcius to Farenheit ?
THE OUTPUT WOULD BE
#include<stdio.h>
#include<conio.h>
void main( )
{ clrscr( );
float c,f;
printf("Enter value in celcius : ");
scanf("%f",&c);
f=1.8*c+32;
printf("Value in Farenheit=%.2f",f);
getch( );
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment