A Program to Convert Celsius Into Fahrenheit
Source Code:
#include <stdio.h>
#include <conio.h>
//A Program to Convert Celsius Into Fahrenheit...By Akshay...
void main()
{
int c,f;
clrscr();
printf("\nEnter the value in Celsius = ");
scanf("%d",&c);
f=(1.8*c)+32;
printf("\nValue in Fahrenheit = %d",f);
getch();
}
After writing the source code save with extension .CPP
Output:
No comments :
Post a Comment