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

why not

PROMPT “Please enter n”
GET n
m=0
WHILE m < n
COMPUTE m = m+1
DISPLAY m
ENDWHILE

Thanks Steve, I found it great!

To display the first n positive integers, you can use the following pseudocode:

1. Prompt the user to enter the value of n.
2. Read and store the value of n.
3. Set a variable, let's say "integer," to 1.
4. Use a loop to iterate from 1 to n.
5. Inside the loop, display the value of "integer" and increment it by 1.
6. End the loop.
7. Exit the program.

Here's the updated pseudocode:

```
PROMPT "Please enter n."
GET n

SET integer = 1
FOR i = 1 to n
DISPLAY integer
SET integer = integer + 1
ENDFOR
```

In this pseudocode, we use a loop (a FOR loop) instead of a WHILE loop to iterate from 1 to n. The variable "integer" is initialized to 1 and gets displayed before being incremented by 1 in each iteration.