Skip to content

Instantly share code, notes, and snippets.

@vitorpiovezam
Created April 15, 2018 22:49
Show Gist options
  • Save vitorpiovezam/3b62efccf56f553e80fc3057a01b287b to your computer and use it in GitHub Desktop.
Save vitorpiovezam/3b62efccf56f553e80fc3057a01b287b to your computer and use it in GitHub Desktop.
menuzão erickão
import java.util.Scanner;
public class teste(){
Scanner in = new Scanner(System.in);
int getMenu = 231;
while(getMenu!=5){
System.out.print("1. Exponenciar");
System.out.print("2. Somar");
System.out.print("3. Multiplicar");
System.out.print("4. Dividir");
System.out.print("5. Sair");
getMenu = in.nextInt();
if(getMEnu == 1){
//code...
}
if(getMEnu == 2){
//code...
}
if(getMEnu == 3){
//code...
}
if(getMEnu == 4){
//code...
}
}//FIm while menu
System.out.print("Tchau");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment