Как ни странно, во время написания еще одной длинной программы я столкнулся с этим примером
Код: Выделить всё
#include
#include
using namespace std;
int main()
{
int a,b,res; float c;
cin>>a;
cin>>b;
cin>>c;
res=(a-b)/c;
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/35950877/1-0-2-should-be-5-so-why-is-the-result-4[/url]
Мобильная версия