Guest User

Untitled

a guest
Feb 18th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<math.h>
  3. void main()
  4. {
  5. int a,b,answer;
  6.  
  7. printf("\nEnter a A \t:");
  8. scanf("%d",&a);
  9.  
  10. printf("\nEnter a B \t:");
  11. scanf("%d",&b);
  12.  
  13. answer=pow(a,2)+pow(b,2)+2*a*b;
  14.  
  15. printf("\n%d is the answer",answer);
  16.  
  17.  
  18. }
Add Comment
Please, Sign In to add comment