Computer Science, asked by vds65, 9 months ago

18. 10
19. To accept numbers till the user enters 0 and then find their ave
20. To print squares of first n numbers.​

Answers

Answered by AdityaRaj626
0

Explanation:

I have created a infinity loop it will take no till the user enters 0 once user enters 0 the loop will terminate because of break . and I have taken "i" as counter for finding the nos the user has input for finding average.

HOPE IT WILL CLEAR YOUR DOUBTS.

Attachments:
Similar questions