Question: Write a C++ program name ulam.cpp. In your program, design a menu system that provides a user with two options: 1) calculate the ulam sequence;
Write a C++ program name ulam.cpp. In your program, design a menu system that provides a user with two options: 1) calculate the ulam sequence; and 2) exit the program. The menu should be printed to the console via a function call. If the user chooses to calculate the ulam sequence, then they should be prompted to enter an integer greater than 2. Pass this integer to a function that produces and displays the ulam sequence to the console (described below). Do not accept a number less than 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
