Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include <stdio.h>
- void main()
- {
- int a=0,b=0,c=0;
- int whole_square=0;
- printf("Enter values of a , b and c\n");
- scanf("%d %d %d", &a, &b, &c);
- whole_square=(a*a)+(b*b)+(c*c)+2*(a*b+b*c+c*a);
- printf("Whole square of three numbers is %d \n", whole_square);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement