Search This Blog

Thursday, October 13, 2011

Write a program that will give square of 3 and 5

   

   1:  #include<stdio.h>
   2:  #include<conio.h>
   3:  #define square(x) x*x
   4:  void main()
   5:  {
   6:  printf("square of 3 is:%d\n",square(3));
   7:  printf("square of 5 is:%d\n",square(5));
   8:  getch();
   9:  }

No comments:

Post a Comment