C PROGRAM TO PRINT PERFECT SQUARE BELOW 1000 - Anna University Multiple Choice Questions

C PROGRAM TO PRINT PERFECT SQUARE BELOW 1000

Aim:
To write a c program to display the perfect squares below 1000
C PROGRAM TO PRINT PERFECT SQUARE
C PROGRAM TO PRINT SQUARE
Algorithm:

  • 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