Program used: NASM You are to read in N integer values and compute the average.
ID: 3790042 • Letter: P
Question
Program used: NASM
You are to read in N integer values and compute the average. You are to display how many numberswere read and their average. The numbers are to be 32 bit integers, positive or negative. A value ofzero (0) indicates there is no more data, and the zero is not counted or used in the computation. Notethat this does not require any sort of array.
I'm having a problem with "A value ofzero (0) indicates there is no more data, and the zero is not counted or used in the computation"
Source Code:
Explanation / Answer
The code is correct and doesn't require any modifications.
The code works fine.
When you input no command line options ,the code is giving is giving expected uotput.
When we give a '0' as input argument also , the executes fine.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.