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

Small Factorials Spoj Solution(using python)

Factorials problem spoj Solution