Q. To print all natural numbers up to n.


Answer :-

Algorithm :-

1. Start
2. Input n
3. For I in range ( 1, n + 1 )
         Print I
4. Stop

Pseudocode:-

N = input "N "
For I in range ( 1 to n + 1 )
         Display I

Flow Chart :-



Click on image for clear view.

2 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. Yes means what to print output pls tell

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post