C++ cin to read int type
#include <iostream> using namespace std; int main()// ww w.ja v a 2 s. com { int ftemp; //for temperature in fahrenheit cout << "Enter temperature in fahrenheit: "; cin >> ftemp; int ctemp = (ftemp-32) * 5 / 9; cout << "Equivalent in Celsius is: " << ctemp << '\n'; cout << "this is a test\n"; return 0; }