KPIT Technologies interview question

Please write the code for a simple program in c++