Answered step by step
Verified Expert Solution
Question
1 Approved Answer
the code has to be in c++, please Lab Task We have three tasks to accomplish in this lab session. Write a program to print
the code has to be in c++, please
Lab Task We have three tasks to accomplish in this lab session. Write a program to print all even numbers between 1 and 100 using a while loop. See the example output below. Number: 2 Number: 4 Number: 6 Number: 8 Number: 10 Number: 96 Number: 98 Number: 100 Write a program to print all odd numbers from 100 to 1 using a for loop. See the example output below. Number: 99 Number: 97 Number: 95 Number: 93 Number: 5 Number: 3 Number: 1 Let the user input a number in this range 2 - 100). Your program should print the multiplication table (from 1 to 9) of that number. See the example below. Input a number from 2 to 100: 67 Multiplication table for number 67: 67 X 1 = 67 67 x 2 = 134 67 X 3 = 201 67 x 4 = 268 67 x 5 = 335 67 x 6 = 402 67 x 7 = 469 67 x 8 = 536 67 x 9 = 603Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started