Q.3) Write C++ code to print a table. The table has n (rows) numbers which are entered by the user. Then the program will show the user three choices (use function for each choice) to print a table:...


Q.3) Write C++ code to print a table. The table has n (rows) numbers which are entered by the user.<br>Then the program will show the user three choices (use function for each choice) to print a table:<br>1) print odd, even numbers and the square of each number.<br>2) print cos, sin, and the square root of each number.<br>3) print the numbers that dividable by 3, 4, and 5.<br>as shown bellow:<br>How many numbers do you want in your table :<br>16<br>Enter the element of your table one by one :<br>4<br>8<br>7<br>14<br>10<br>chose one of the following operations :<br>1) print odd numbers , even numbers and square of the number<br>2) print cosine<br>3) print the numbers that dividable by 3 or 4 or 5<br>sine and square root of the number<br>1<br>Numbers<br>Even<br>Odd<br>Square<br>4<br>Even<br>16<br>5<br>odd<br>25<br>8<br>Even<br>64<br>7<br>odd<br>49<br>14<br>Even<br>196<br>10<br>Even<br>100<br>Process exited after 15.38 seconds with return value e<br>Press any key to continue .<br>

Extracted text: Q.3) Write C++ code to print a table. The table has n (rows) numbers which are entered by the user. Then the program will show the user three choices (use function for each choice) to print a table: 1) print odd, even numbers and the square of each number. 2) print cos, sin, and the square root of each number. 3) print the numbers that dividable by 3, 4, and 5. as shown bellow: How many numbers do you want in your table : 16 Enter the element of your table one by one : 4 8 7 14 10 chose one of the following operations : 1) print odd numbers , even numbers and square of the number 2) print cosine 3) print the numbers that dividable by 3 or 4 or 5 sine and square root of the number 1 Numbers Even Odd Square 4 Even 16 5 odd 25 8 Even 64 7 odd 49 14 Even 196 10 Even 100 Process exited after 15.38 seconds with return value e Press any key to continue .

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here