Responsive Ads Here

Wednesday, 10 May 2017

TEST - Life, the Universe, and Everything

problem id:-http://www.spoj.com/problems/TEST/

code:-

#include <iostream>
using namespace std;

int main() 
{
int n;
while(1)
{
cin>>n;
if(n==42)
break;
cout<<n<<'\n';
}
return 0;
}

No comments:

Post a Comment