C++ Tutorial #6 — Nested if statements

Homework: C++ Homework 3: Using if statements to control program flow Topics Discussed: If statements, using bool(ean) operators as custom if-conditionals. #include using namespace std; int main() { double accountBalance = 5000.0, withdrawAmount = 0; cout > withdrawAmount; if (withdrawAmount > accountBalance) { cout 1000) { cout