Question: 2) Write a program to add all the odd numbers between 1 and 100 using while loop. Submit your (30 pts) C++ program code

2) Write a program to add all the odd numbers between 1 

2) Write a program to add all the odd numbers between 1 and 100 using while loop. Submit your (30 pts) C++ program code along with screenshots. /* 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

Programiz C Online Compiler maincpp 1 include LEARN PYTHON Learn More 2 3 int main 4 in... View full answer

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 Programming Questions!