Question: a) Write a program that displays the sum of the following series: 1+3+5+7+.100 using continue statement [C2, CLO-2, PLO-3] b) Write a program that inputs
a) Write a program that displays the sum of the following series: 1+3+5+7+.100 using continue statement [C2, CLO-2, PLO-3] b) Write a program that inputs marks of a student and displays Pass if marks are more than 40 and Fail otherwise by using conditional operator. [C2, CLO-2, PLO-3] c)Write a program that generates the following output: 10 20 19 Use integer constant for 10, arithmetic assignment operator to generate the 20 and decrement operator to generate 19. [C2, CLO-2, PLO-3]
c++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
