You will have to return this question paper at the end of the
examination with relevant parts filled out.
There are two questions. You have to write working programs in
Pascal, C or C++ to solve each of these questions. You must compile
your program yourself and produce an executable file (EXE file).
At the end of each question, there is a space to indicate the
location of the source code and the executable file for your
solution. Please fill up this information without fail.
All input for your programs will come from the keyboard. All
output from your programs should be written to the screen.