Question: Write a program in c++ using loops to produce the following output using loops: (10) 1 2 3 4 5 6 7 6 5 4
Write a program in c++ using loops to produce the following output using loops: (10) 1 2 3 4 5 6 7 6 5 4 3 2 1 1 2 3 4 5 6 6 5 4 3 2 1 1 2 3 4 5 5 4 3 2 1 1 2 3 4 4 3 2 1 1 2 3 3 2 1 1 2 2 1 1 1 Q.NO.2: Write the definition of a void function that takes as input a decimal number and as output 3 times the value of the decimal number. Format your output to two decimal places. Q.No.3: Write a program that prompts the user to input an integer between 0 and 35. If the number is less than or equal to 9, the program should output the number; otherwise, it should output A for 10, B for 11, C for 12...and Z for 35. (Hint: Use the cast operator, static_cast( ), for numbers >= 10.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
