Advertisement
Guest User

Untitled

a guest
Apr 1st, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.         float step = 1.0f / 10;
  7.         float t;
  8.  
  9.         for(t = 0; t <= 1.0f; t += step) {}
  10.  
  11.         cout << "(t <= 1.0f) = " << (t <= 1.0f) << "\n";
  12.         cout << "\n(1.000000 <= 1.0f) = " << (1.000000 <= 1.0f) << "\n";
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement