Q. To print squares of first n numbers.


Answer :-

Algorithm:-

1. Start
2. Input a number
3. For I in range ( number +1 )
               Square = I ** 2
               Print Square
4. Stop

Pseudocode :-

N = input "a number"
For I in range 0 to n + 1
             Square = I ** 2
             Display square

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