why not
PROMPT “Please enter n”
GET n
m=0
WHILE m < n
COMPUTE m = m+1
DISPLAY m
ENDWHILE
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
2 answers
Thanks Steve, I found it great!