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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!