- Ask the User for his or her name.
- Display a Menu asking the user.
a. Would you Like To Print all of the prime numbers from 3... N?
b. Would you like to quit this program?
- If the User selects to print the prime numbers. Ask for the user to enter a value. Then find and print all of the primes to that value. Along with a message describing displaying the users name and what value they chose.
This is what I'm supposed to for the program but I'm not really sure how to do the second step.
So far all I have is this:
#include <iostream> using namespace std; int main (){ int name; cout << "Hello, What is your name?" << endl; cin >> name; return 0; }