Monday 21 January 2013

Life, the Universe, and Everything

1. Life, the Universe, and Everything Problem code: TEST


#include <stdio.h>
int main()
{
    int N;
    while( 1 )
    {
        scanf( "%d", &N );
   
        if( N == 42 )
                break;
       
        printf( "%d\n", N );
    }
    return 0;
}

No comments:

Post a Comment