Question: Write a program to add all the odd numbers between 1 and 100 using while loop. Submit your C++ program code along with screenshots. 2)
Write a program to add all the odd numbers between 1 and 100 using while loop. Submit your C++ program code along with screenshots. 2) (30 pts) Hint: You can check a number whether odd or even using"modulus operator" i.e. %. For example 3 % 2 = 1 (odd number) 4 % 2 = 0 (even number)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
