#include<stdio.h>
#include<stdlib.h>
void line()
{
int i,j;
printf("\n");
for(i=1;i<=42;i++)
printf("=");
}
void header()
{
printf("\n");
printf("Built and Designed by Arslan Malik\n\n www.CworldbyAS.blogspot.com");
printf("\n");
}
int main()
{
line();
header();
line();
int a,b,c,d;
printf("\nEnter any four numbers = \n");
scanf("%d%d%d%d",&a,&b,&c,&d);
printf("Square of %d = %d \n",a,a*a);
printf("Square of %d = %d \n",b,b*b);
printf("Square of %d = %d \n",c,c*c);
printf("Square of %d = %d \n",d,d*d);
printf("Sum of Sqaures of %d,%d,%d,%d=%d ",a,b,c,d, a*a+b*b+c*c+d*d );
return 0;
}
#include<stdlib.h>
void line()
{
int i,j;
printf("\n");
for(i=1;i<=42;i++)
printf("=");
}
void header()
{
printf("\n");
printf("Built and Designed by Arslan Malik\n\n www.CworldbyAS.blogspot.com");
printf("\n");
}
int main()
{
line();
header();
line();
int a,b,c,d;
printf("\nEnter any four numbers = \n");
scanf("%d%d%d%d",&a,&b,&c,&d);
printf("Square of %d = %d \n",a,a*a);
printf("Square of %d = %d \n",b,b*b);
printf("Square of %d = %d \n",c,c*c);
printf("Square of %d = %d \n",d,d*d);
printf("Sum of Sqaures of %d,%d,%d,%d=%d ",a,b,c,d, a*a+b*b+c*c+d*d );
return 0;
}
No comments:
Post a Comment