Write a program to find the average of natural numbers from 1 to N using do while
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program to find the average of natural numbers from 1 to N using do while loop. Value of N should be entered by user.
[Hint : Average = sum of all numbers / total number of natural numbers]
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date: