Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Monday, 6 June 2016

PROBLEM 36:

Write a program that takes input of temperature in Celsius and converts it into Fahrenheit and prints the result.

CODE:

#include<stdio.h>
main ()
{
float temp;
float ans;
printf("enter temperature in celsius:");
scanf("%f",&temp);
ans=temp*9/5+32;
printf("your temperature in fehrenheit is:%f",ans);
return 0;
}


PROGRAM OUTPUT:









For more problems click here

No comments:

Post a Comment