Aim:
To write a c program to display the perfect squares below 1000
Algorithm:
To write a c program to display the perfect squares below 1000
C PROGRAM TO PRINT SQUARE |
- Start the program
- Initialize i=1
- Calculate result as i*i<1000
- Display the result
- Stop the program
Program:
Output:
1 4 9 16 25 36 49 64 81 100 121 144 169 196 225 256 289 324 361 400 441 ..... .900 961
No comments:
Post a Comment