Q. To print n odd numbers.


Answer :-

Algorithm :-


1. Start
2. Input n
3. For I in range ( 1 , 2 * n + 1 )
           If I % 2 != 0 :
                  Print I
5. Stop

Pseudocode :-

N = input n
For I in range ( 1 to 2 * n +1)
        If I is not divisible by 2
                Display I

Flow Chart :-



Click on image for clear view.

Post a Comment

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

Previous Post Next Post