Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  Temp Conversion
Language: C/C++
Code:
#include<stdio.h>
#include<conio.h>

void main()
{
float Fahrenheit, Celsius;

clrscr();

printf("Enter Temperature in Fahrenheit \n");
scanf("%f",&Fahrenheit);

Celsius = 5.0/9.0 * (Fahrenheit-32);

printf("\n Temperature in Fahrenheit = %f", Fahrenheit);
printf("\n Temperature in Celsius = %f", Celsius);

getch();
}

          
Comments: