PPS Practical 6
- Aim: Write a program to compute Fahrenheit from centigrade (f=1.8*c +32).
- Code:
//For turbo C++ remove below comments #include <stdio.h> //#include<conio.h> void main() { float c,f; //clrscr(); printf("Enter Temperature in Celcius : "); scanf("%f",&c); f=(9*c/5)+32; printf("Temperature in Fahrenheit : %.2f\n",f); //getch(); }
- Output:

Comments
Post a Comment