Advertisement
rahat62

Life, the Universe, and Everything

Sep 25th, 2019
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. #include<math.h>
  3. using namespace std;
  4. int main()
  5. {
  6.    int n;
  7.    for(;;)
  8.    {
  9.        cin>>n;
  10.        if(n==42) break;
  11.        else
  12.         cout<<n<<endl;
  13.    }
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement