Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created January 22, 2021 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/b89b02bf0b2f22a2492e2b0c8313f64c to your computer and use it in GitHub Desktop.
Save codecademydev/b89b02bf0b2f22a2492e2b0c8313f64c to your computer and use it in GitHub Desktop.
Codecademy export
#include <iostream>
int main () {
int MainWorkout;
int MainLift;
std::cout << "********** NEW GYM PLAN ********** \n\n";
std::cout << "Enter 1, 2, or 3 for the body part you want to workout today: \n\n";
std::cout << "1) Chest \n";
std::cout << "2) Back \n";
std::cout << "3) Legs \n\n";
std::cin >> MainWorkout;
while (MainWorkout != 1) {
std::cout << "Not a choice. Enter either 1, 2, or 3.\n";
std::cin >> MainWorkout;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment