Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- float a = 1.234;
- float b = 7.896;
- float c = 9.297;
- float d = (float)a*b;
- float e = (float)b*c;
- if((float)d * c == (float)e * c)
- cout << "Yes";
- else cout << "No";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement