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.
Yes means what to print output pls tell
ReplyDeleteIt will print natural numbers upto n.
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )