C Language - #include and #define

 



#include <stdio.h>
#define PI 3.14
#define SQUARE(x) x*x
int main()
{  
int b=34;
int c=345;
float d=PI;
int x=5;
printf ("the value of b is %d\n", b);
printf ("the value of c is %d\n", c);
printf ("the value of PI is %f\n", d);
printf ("the area of a circle is %f\n",PI * SQUARE (x));


// ScreenShots:




Comments

Popular Posts