Advertisement
Guest User

Untitled

a guest
Apr 8th, 2020
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.     double p;
  7.     while (true) {
  8.         cin >> p;
  9.         if(p == 0) {
  10.             cout << "lol zero" << endl;
  11.             p = 0; // fix
  12.             continue;
  13.         }
  14.  
  15.         if(p != 1337)
  16.             cout << "fail :c" << endl;
  17.         else
  18.             break;
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement