C++ code;
Переводит обычную температу(Celsius) в (fahrenheit);
| +++++++ couting +++++++ |
#include <iostream>
#include <cstdio>
#include <cstdlib>
using namespace std;
int main(int nNumberofArgs, char* pszArgs[]) {
double celsius;
cout << "Enter the value in Celsius: ";
cin >> celsius;
double factor;
factor = 212 - 32;
double fahrenheit;
fahrenheit = celsius * factor/100 + 32;
cout << "Temperature in fahrenheit: " << fahrenheit << endl;
system("PAUSE");
return 0;
}
Комментарии:
Нету комментариев для вывода...