Q: Write a program which accept temperature in Fahrenheit and print it in centigrade.
Solution:
Screenshot:
Solution:
#include <iostream> using namespace std; int main(int argc, char *argv[]) { float F,C; cout<< "\nEnter temperature in Farenheit : "; cin>>F; C=5*(F-32)/9; cout<<"Temperature in celcius is : "<<C; return 0; }
Screenshot:
No comments:
Post a Comment