-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathestudo.java
More file actions
64 lines (39 loc) · 1.39 KB
/
Copy pathestudo.java
File metadata and controls
64 lines (39 loc) · 1.39 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
// public static void main(String[] args) {
//codigo aqui
//String nome = "João Paulo";
//int idade = 18;
//double salario = 250.50;
//System.out.println( "Nome:" +nome );
//System.out.println("Idade: "+ idade);
//System.out.printf("Salario(quebrado dms):R$ % 1f", + salario );
//Scanner teclado = new Scanner(System.in);
//System.out.println("Digite seu nome: ");
//String name = teclado.nextLine();
//System.out.println("Digite idade: ");
//int age = teclado.nextInt();
//System.out.println("Digite salário: ");
//double salary = teclado.nextDouble();
//System.out.printf("Nome: %s Idade: %d Salário: %.2f ",name,age,salary );
//teclado.close();
// System.out.print("Digite o numero: ");
//int n1= teclado.nextInt() ;
//System.out.print("Digite o numero: ");
//int n2= teclado.nextInt() ;
//int total = n1+n2;
//System.out.println("o total é :" + total);
//teclado.close();
//if (n1>n2) {
//System.out.println("o numero maior é "+ n1);
// }
// else if(n1<n2){
// System.out.println("o numero maior é "+ n2 );
// }
// else{
// System.out.println("ambos são iguais ");
// }
// }
// Praticando
//q1
//}