Question: 1. Create a loop that lists the squares from 1 to 100. 2. Create a loop that prints out a triangle. 3. Create a loop

1. Create a loop that lists the squares from 1 to 100. 2. Create a loop that prints out a triangle. 3. Create a loop that counts the odd numbers backwards from 19 to 1. 4. Ask the user for a number and check if it is even or odd 5. Ask the user for their age and ensure that they only put in a value between 1 and 100 6. Give the user three strikes to guess your favorite number (which is found by using rand()). E.C. 1. Create a function that has an input of an int and returns a string which says either "ODD" or "EVEN" 2. Create a function that checks if a number passed to it is prime. 3. Create a function that uses "pass by reference" to add 5 to any number that it receives as an argument, it should account for the input being a double or an int.

C++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!