Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- void main()
- {
- int a,b,answer;
- printf("\nEnter a A \t:");
- scanf("%d",&a);
- printf("\nEnter a B \t:");
- scanf("%d",&b);
- answer=pow(a,2)+pow(b,2)+2*a*b;
- printf("\n%d is the answer",answer);
- }
Add Comment
Please, Sign In to add comment