Untitled
unknown
plain_text
4 years ago
2.0 kB
4
Indexable
import java.util.Scanner;
public class Main
{
public static void main(String argvs[])
{
int ch;
int choices;
Scanner sc = new Scanner(System.in);
// displaying the menu
System.out.println("1: skill1:");
System.out.println("2: skill 2");
System.out.println("3: skill 3");
System.out.println("4: skill 4");
System.out.println("5: skill 5");
System.out.println("6: skill 6");
System.out.println("7: skill 7");
lp : while(true) // labeling the while loop
{
System.out.print("Make your choice: ");
ch = sc.nextInt(); // reading user's choice
switch (ch)
{
case 1: // for Right Angled Triangle
System.out.print("choose interests: 1.gaming, 2.programming");
choices = sc.nextInt();
if(choices==1)
{
System.out.print("companies available:playstation,xbox,google,microsoft,apple,insomniacgames dreams to choose: gamer, creator, engineer of consoles, future tester courses available:software engineering, game courses ");
}
else if(choices==2){
System.out.println("companies available:epic, google, apple, microsoft, facebook, known game companies: santamonica dreams to choose:game programmer, components provider for great companies, game developing app maker, 3d app maker, game publisher courses available: software, computer engineering, it, game courses" );
}
else{
System.out.println("none");
}
break;
case 2:
System.out.println("none");
break;
default:
System.out.println("thank you");
}
}
}
}Editor is loading...