ATIF ASLAM/JAL ROCKS at that time
By varun_gandhi
@varun_gandhi (1593)
India
4 responses
@kabir_helboy (301)
• India
23 Jan 07
yes they rock. thank you for creating such a discussion and i will also create such interesting discussions in future.
@puri_puneet2003 (1220)
• India
26 Dec 06
yes i agree with u ATIF and JAL both rocks...........
prog. u wanted....
class menu
{
public static void main(String args[])
throws java.io.IOException
{
char choice;
do
{
System.out.println("help on:");
System.out.println("1.if");
System.out.println("2.switch");
System.out.println("3.while");
System.out.println("4.do while");
System.out.println("choose one:");
choice=(char) System.in.read();
}
while(choice'5');
System.out.println("\n");
switch(choice)
{
case '1' :
System.out.println("the if: \n");
System.out.println("if(condition) statement;");
System.out.println("else statement;");
break;
case '2' :
System.out.println("the switch:\n");
System.out.println("switch (expression){");
System.out.println(" case constant:");
System.out.println(" statement sequence");
System.out.println("break;");
System.out.println("//.....");
System.out.println("}");
break;
case '3' :
System.out.println("the while;\n ");
System.out.println("while (condition) statement;");
break;
case '4' :
System.out.println("the do while: \n");
System.out.println("do {");
System.out.println("statement;");
System.out.println("} while (condition);");
break;
case '5' :
System.out.println("the for: \n");
System.out.println("for(init;condition;iteration)");
System.out.println("statement;");
break;
}
}
}
@dhoom_akash (428)
• United States
29 Dec 06
i agree
you have created a cool discussion..
in your discussion you have taken a good issue..