Question: im fairly new to programming in c++ im trying to get a program that will ask the user their favorite color, favorite integer number and
im fairly new to programming in c++ im trying to get a program that will ask the user their favorite color, favorite integer number and favorite floating point number. It will then display lines of output based on the users responses to these questions. In particular, each line will contain 3 pieces of information The number of lines will be controlled by the favorite integer number. If the favorite integer number is 0 or less, then no lines will be displayed. like this
i know i need to use a for loop but im just not quite sure how to properly use one. here is the code i have and everything works i just want to know how a for loop would work in the the askquestions3 functions.
$ ./questions_3 What is your favorite color? Teal What is your favorite integer? 6 What is your favorite number? 3.14 1 Teal 3.14 2 Teal 3.14 3 Teal 3.14 4 Teal 3.14 5 Teal 3.14 6 Teal 3.14 1 6 nclude "image_menu.h" #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
