/*A Program that uses a function to square a number */

#include <stdio.h>

/*Function prototype of square */

int square(int);

main()

{

   int x=5;

   while (x>0) {

   printf("The square of the number %d is %d \n",x,square(x));
   x--;


   }

}
/*Function Definition*/

int square (int y)

{

return y*y;

}

