Write a program which accept temperature in Farenheit and print it in centigrade.
#include<iostream> #include<conio.h> using namespace std; int main() { float Centigrade,f; cout<<"Enter temperature in Farenheit "; cin>>f; Centigrade=5*(f-32)/9; cout<<"Centigrade is = "<<Centigrade; getch(); }
1 Questions:
You didn't include return 0 but the program was in integer data type please rectify
Post a Comment