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 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
Programiz C Online Compiler maincpp 1 include LEARN PYTHON Learn More 2 3 int main 4 in... View full answer
Get step-by-step solutions from verified subject matter experts
