btw here is my sample code
int func; writeln("\t\tEnter Selection : "); func = readln; writeln(func); if(func == 1) { writeln("hello world"); } if(func == 2) { writeln("hello world"); } if(func == 3) { writeln("endtime"); } if(func == 4) { writeln("hello world"); } if(func == 5) { writeln("hello world"); }