Question: pls i want answer Q18,Q19 Q18. Write a C++ program for the question given below. Read the D, choice (ch) from the user Check the
Q18. Write a C++ program for the question given below. Read the D, choice (ch) from the user Check the choice and print the corresponding result of equation as given in Table Q18 using switch case statement. TABLE Q18 Sample output: choice Equation Enter the value of D : 2 5 Sum=(D+D+D) 6 Difference=(D-D-D Enter the choice : 5 7 Multiply=D*D*D Sum is : 6 Any Other Error Program: (5) Q19. Write a C++ program to perform the following. Read a number N from the user Print the series following series and calculate its product using for loop 1.5 1.7 1.9 2.1 .............N Sample Output: Enter a number : 2.3 Series : 1.5 1.7 1.9 2.1 2.3 Product of the Series:23.40135 [1] i) Identify the start, end interval to print the above series. ii) Program: [4]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
