Você está na página 1de 2

//exercicio6

//
// Scanner sc = new Scanner(System.in);
// System.out.print("Digite uma frase: ");
// String frase = sc.nextLine().toLowerCase();
//
// for(int i = 0; i <= frase.length() - 1; i++) {
//
// char letra = frase.charAt(i);
//
// if (letra == ' ') {
// continue;
// }
//
// System.out.print(letra + ", ");
// }
//
//
// sc.close();

//Exercicio7

// Scanner sc = new Scanner(System.in);


// System.out.print("Digite o valor do numero: ");
// double b = sc.nextDouble();
// System.out.print("Digite o valor do expoente: ");
// int n = sc.nextInt();
//
// while(n >= 0 && b > 0) {
// double MULTIPLICADOR = b;
// for(int i = 1; i < n; i++) {
// b = b * MULTIPLICADOR;
// }
//
// System.out.println(b);
// System.out.print("Digite o valor do numero: ");
// b = sc.nextDouble();
// System.out.print("Digite o valor do expoente: ");
// n = sc.nextInt();
// }
//
// sc.close();

//Exercicio8

// Scanner sc = new Scanner(System.in);


// int portugues = 50, matematica = 35;
//
// while(true) {
//
// System.out.print("Quantidade de questões que acertou em portugues:
");
// int notaPortugues = sc.nextInt();
// while(notaPortugues > portugues) {
// System.out.print("Numero invalido! Tente novamente: ");
// notaPortugues = sc.nextInt();
// }
//
// if (notaPortugues < 0) {
// break;
// }
//
// System.out.print("Quantidade de questões que acertou em
matematica: ");
// int notaMatematica = sc.nextInt();
// while(notaMatematica > matematica) {
// System.out.print("Numero invalido! Tente novamente: ");
// notaMatematica = sc.nextInt();
// }
// System.out.print("Nota da redação: ");
// double redacao = sc.nextDouble();
//
// if (notaMatematica >= matematica*0.7 && notaPortugues >=
portugues*0.7 && redacao >= 7) {
// System.out.println("Aprovado");
// }
// else {
// System.out.println("Reprovado");
// }
//
// }
//
// sc.close();

Você também pode gostar