samedi 31 octobre 2015

While loop to read numbers from file

Write a program that uses a while loop to read 10 integer numbers from file “numbers.in” and prints their sum and average on the screen as follows:

The sum is n and average is m.

how do i use the while loop in this question ? Help Help !!

Aucun commentaire:

Enregistrer un commentaire