Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please use c plus plus language The following program segment is to calculate the average of 10 students' marks. Write the program using repetition structure
Please use c plus plus language
The following program segment is to calculate the average of 10 students' marks. Write the program using repetition structure to make it more efficient. Assume all variables have been declared. cin >> marki >> mark2 >> mark3 >> mark4 >> mark5 >> marko >> mark7 >> mark8 >> mark9 >> mark10; total - marki + mark2 + mark3 + mark4 + mark5 + mark6 + mark7 + mark8 + mark9 + mark10; average total coutStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started