Asked by Anwar
Pkease who can help? I need to know a pseudocode to display the first n positive integers given n from the user.
here is what i tried
PROMPT “Please enter n”
GET n
IF n==1 then
DISPLAY “1”
WHILE n>1
COMPUTE intiger=n-(n-1)
DISPLAY integer
ENDWHILE
here is what i tried
PROMPT “Please enter n”
GET n
IF n==1 then
DISPLAY “1”
WHILE n>1
COMPUTE intiger=n-(n-1)
DISPLAY integer
ENDWHILE
Answers
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.