#include <stdlib.h>
int main()
{
int a,b,c,d,sumsq;
printf("\nEnter 1st number...");
scanf("%d",&a);
printf("\nEnter 2nd number...");
scanf("%d",&b);
printf("\nEnter 3rd number...");
scanf("%d",&c);
printf("\nEnter 4th number...");
scanf("%d",&d);
a=a*a;
b=b*b;
c=c*c;
d=d*d;
sumsq=a+b+c+d;
printf("Sum of squares is = %d",sumsq);
return 0;
}
0 comments:
Post a Comment