-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmetodoSwitch.java
More file actions
33 lines (16 loc) · 822 Bytes
/
metodoSwitch.java
File metadata and controls
33 lines (16 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import java.util.Scanner;
public class metodoSwitch {
Scanner entrada =new Scanner ( System.in);
public void exibirMenu(){
int operacao;
do{
System.out.println("------ Escolhas umas das operações:------");
System.out.println(" 1.Soma + ");
System.out.println(" 2.Subtração - "); // Montando o painel de escolhas das opções
System.out.println(" 3.Multiplicação x ");//fazer todo esse bloco
System.out.println(" 4.Divisão / ");
System.out.println("Digite a operação desejada:");
operacao=entrada.nextInt();
} while (operacao >=5);
}
}