Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assignment and increment operators You want to withdraw some money from your bank account. The program takes two numbers as input, your account balance and
Assignment and increment operators
You want to withdraw some money from your bank account. The program takes two numbers as input, your account balance and the amount you want to withdraw. Calculate and output the remaining balance after the withdrawal. Sample Input 450000 9000 Sample Output 441000
Use the -= shorthand for easier calculation.
#include
using namespace std;
int main() {
int balance;
int withdraw;
cin >> balance;
cin >> withdraw;
// your code goes here
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started