Write a java program for
Input: 5 3 5
Output: 196
Output Explanation:
a=5; b=3; c=5
(a+(2(power 0)*b
S1 = 5 + (1*3) = 8
S2 = 5 + (1*3) + (2*3) = 14
S3 = 5 + (1*3) + (2*3) + (4*3) = 26
S4 = 5 + (1*3) + (2*3) + (4*3) + (8*3) = 50
S5 = 5 + (1*3) + (2*3) + (4*3) + (8*3) + (16*3) = 98
Sum = S1+S2+S3+S4+S5
= 196
Answers
Answered by
0
Answer:
Sort I don't know Sorry sorry
Answered by
1
Answer:
IDK don't know
Explanation:
Happy To be Speechless
Similar questions