Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. # include <stdio.h>
  2.  
  3. void main()
  4. {
  5. int a=0,b=0,c=0;
  6. int whole_square=0;
  7.  
  8. printf("Enter values of a , b and c\n");
  9. scanf("%d %d %d", &a, &b, &c);
  10.  
  11. whole_square=(a*a)+(b*b)+(c*c)+2*(a*b+b*c+c*a);
  12. printf("Whole square of three numbers is %d \n", whole_square);
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement