(3 marks)
☑Kizspy. me The given file Q2.c already contains statements to input two integers x and n (x>0, n>2). You should
write statements to calculate the following expression value:
Zoom
S=x+x+x+x++...+x^
Notes:
- You can create new functions if you see it is necessary.
3 of 4
Paper No: 1
-Do not edit the main function.
Sample output:
Input: x=2, n=4
After processing: S=30
+ 100%
Close