My program compiles, but it just doesn't print anything after some point.
I tried changing the program and sometimes it printed "X="number"" and sometimes it didn't.
#include <iostream>
int main() {
int a;
int b;
int f;
std::cout << "Type numbers a, b and f ";
std::cout << std::endl << "a=";
std::cin >> a;
std::cout << std::endl << "b=";
std::cin >> b;
std::cout << std::endl << "f=";
std::cin >> f;
std::cout << std::endl
<< "Using the formula (а + b — f / а) + f * a * a — (a + b)"
<< std::endl;
std::cout << "x=" << (a + b - f / a) + f * a * a - (a + b);
return 0;
}
I expect two last std::cout
to work, but they do not print anything.