Life, The Universe And Everything problem Spoj Solution

 #include <iostream>

using namespace std;


int main() {

int n ;

while(1)

{

cin>>n;

if(n==42) {

break; }

     cout<<n<<endl;

}

return 0;

}


Comments

Popular posts from this blog

Factorials problem spoj Solution

Adding Reversed Numbers Spoj Solutions