TEST

#include <iostream>
using namespace std;
int main() {
    // your code goes here
    int number;
        do{
            cin>>number;
            if (number==42)
                return 0;
            cout<<number<<endl;
        } while(number!=42);
    return 0;
}

/*https://www.codechef.com/problems/TEST
So, basically all this program tests is your ability of understanding a single do-while loop. It takes in the number gives out the same number. If it ever encounters a 42, it exits the program.
This is the  easiest and the hardest. If you get through, you'll try your best climbing up. If you get through, you aren't really a programmer.*/

Comments