Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int a;
- int b;
- float left;
- float right;
- printf("a =");
- scanf("%d", &a);
- printf("b =");
- scanf("%d", &b);
- left = ((a + b)*(a - b));
- right = (pow(a,2)-pow(b,2));
- if (right == left)
- {
- printf("true");
- }
- else
- {
- printf("false");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement