Question: CS151 Ilm-Class Programming Assigmment 15 Points Write a C++ program to find and print the sum of odd numbers between 1 to 10. Hint: -
CS151 Ilm-Class Programming Assigmment 15 Points Write a C++ program to find and print the sum of odd numbers between 1 to 10. Hint: - Use while loop(s) or for loop(s) to iterate 10 times. Compute the value for sum of odd numbers. Print the sum of odd numbrs. If you are using a for loop declare: int Oddsum = 0 If you are using a while loop declare: int i=0, Oddsum = 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
