C PROGRAMMING COMPLETE JNTU PROGRAMS.pdf


Preview of PDF document c-programming-complete-jntu-programs.pdf

Page 1 234114

Text preview


2
Program
#include<stdio.h>
main ()
{
float temp_c, temp_f;
printf ("Enter the value of Temperature in Celcius: ");
scanf ("%f", &temp_c);
temp_f = (1.8 * temp_c) + 32;
printf ("The value of Temperature in Fahreinheit is: %f", temp_f);
}