Computer Science, asked by aryanarora272006, 6 months ago

write a menu driven program to find the sum of the following series
90+80+70+60+50​

Answers

Answered by gottenagendramma
2

Answer:

90+80+70+60+50 is = 350.

Please follow me and mark me as brainlist plzz......

Answered by srathnamala04
3

Answer:

Explanation:

Prerequisite – Array Basics

Given an array, write a program to find the sum of values of even and odd index positions separately.

Examples:

Input : arr = {1, 2, 3, 4, 5, 6}

Output :Even index positions sum 9

Odd index positions sum 12

Explanation: Here, n = 6 so there will be 3 even

index positions and 3 odd index positions in an array

Even = 1 + 3 + 5 = 9

Odd = 2 + 4 + 6 = 12

Input : arr = {10, 20, 30, 40, 50, 60, 70}

Output : Even index positions sum 160

Odd index positions sum 170

Explanation: Here, n = 7 so there will be 3 odd

index positions and 4 even index positions in an array

Even = 10 + 30 + 50 + 70 = 160

Odd = 20 + 40 + 60 = 120

Similar questions
Math, 3 months ago