Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- float step = 1.0f / 10;
- float t;
- for(t = 0; t <= 1.0f; t += step) {}
- cout << "(t <= 1.0f) = " << (t <= 1.0f) << "\n";
- cout << "\n(1.000000 <= 1.0f) = " << (1.000000 <= 1.0f) << "\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement