Write a c program to find addition of two squared number using macro SQR(x)
Write a c program to find addition of two squared number using macro SQR(x)
#include<stdio.h>
#define SQR(x) x*x
void main()
{
int a,b,c;
printf("Enter two integers\n");
scanf("%d%d",&a,&b);
c=SQR(a)+SQR(b);
printf(“The sum of two squared numbers=%d",c);
}
Comments
Post a Comment