Answer the question
In order to leave comments, you need to log in
The C++ program works strangely. What to do?
#include <iostream>
using namespace std;
int main() {
double fahr, cels;
cout << endl << "Введите температуру по Фаренгейту" << endl;
cin >> fahr;
cels = 5 / 9 * (fahr - 32);
cout << "По Фаренгейту: " << fahr << ", по Цельсию: " << cels << endl;
return 0;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question