What am i doing wrong ?
I'm working on a task in C++ , Bank Account Balance , and i don't understand what I'm doing wrong. #include <iostream> using namespace std; int main() { int balance; int withdraw; cin >> balance; cin >> withdraw; // your code goes here return 0; } I've tried adding another integer ; "int x = balance -= withdraw; int main() { int balance; int withdraw; int x = balance -= withdraw; cin >> balance; cin >> withdraw; // ваш код cout << x << endl; return 0; } I've rewrote cout several times , used "-" instead of "-=" in int x. Nothing has succeeded so far. Any and all input will be greatly appreciated. EDIT : Shadow is correct ! It worked ! Thank you so much ! :D. Have a great & wonderful day , everyone ! :).