C++

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;

}
Добавлено: 29 Июля 2013 07:27:37 Добавил: Андрей Ковальчук Нравится 0
Добавить
Комментарии:
Нету комментариев для вывода...