import java.util.*;
import java.lang.*;
import java.io.*;

class Main {
    public static void main(String[] args) {


        //exercício 1 - 102
  /*  Scanner scanner = new Scanner(System.in);
      double pi = 3.14;
        while (scanner.hasNextDouble()) {
      double raio = scanner.nextDouble();
      double volume = (4.0 / 3.0) * pi * Math.pow(raio, 3);
            System.out.printf("%.2f\n", volume);]
            }
      scanner.close();
      }
} */


         // exercício 2 - 112
  /*   int saldo1 = 100;
       int saldo2 = 200;
         while (saldo1 <= saldo2) {
            System.out.println(saldo1);
         saldo1 += 5;
         } 
   */

   /*   // exercício 3 - 113
        Scanner scanner = new Scanner(System.in);
         int inicio = scanner.nextInt();
         int limite = scanner.nextInt();
              if (inicio <= limite) {
                 for (int i = inicio; i <= limite; i++) {
                        System.out.print(i + " ");}
              } else {
                 System.out.println("Erro, intervalo inválido");
                 }
                 scanner.close();
                 }
}  */

        
         // exercício 4 - 114
    /*   Scanner scanner = new Scanner(System.in);
          double pi = 3.14;
            while (scanner.hasNextDouble()) {
          double raio = scanner.nextDouble();
          double volume = (4.0 / 3.0) * pi * Math.pow(raio, 3);
               System.out.printf("%.2f\n", volume);
               }
          scanner.close();
          }
} */


        // exercício 5 - 115
   /*     Scanner scanner = new Scanner(System.in);
        int n1 = scanner.nextInt();
        int n2 = scanner.nextInt();
        int inicio = Math.min(n1, n2);
        int fim = Math.max(n1, n2);
        int soma = 0;
        int atual = inicio;
           while (atual <= fim) {
            soma += atual;
             atual++;
    }
        System.out.println(soma);
   */


        // exercício 6 - 127
    /*  Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int i = 1;
            while (i <= N) {
                if (i % 2 == 0) {
        System.out.println(i);
                }
        i++;
            }
    }
}   */


        // exercício 7 - 128
    /*  Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
           if (N <= 0 || N >= 20) {
               System.out.println("N deve estar entre 1 e 19.");
            return;
           }
        for (int i = 0; i < N; i++) {
            int numero = scanner.nextInt();
            int antecessor = numero - 1;
            int sucessor = numero + 1;
        System.out.println(antecessor + ", " + numero + ", " + sucessor);
        }
        scanner.close();
    }
}  */


        // exercício 8 - 129
    /*  Scanner scanner = new Scanner(System.in);
        double numero;
           while (true) {
           numero = scanner.nextDouble();
                if (numero == 0) {
        break;
        }
        double raizCubica = Math.cbrt(numero);
           System.out.printf("%.2f\n", raizCubica);
           }
           scanner.close();
           }
}   */

        
         // exercício 9 - 133
    /*   Scanner scanner = new Scanner(System.in);
    double preco;
        while (true) {
    preco = scanner.nextDouble();
        if (preco < 0) {
        break;
        }
        if (preco <= 25.99) {
            System.out.println("Rosa");
        } else if (preco <= 50.99) {
            System.out.println("Azul");
        } else if (preco <= 75.99) {
            System.out.println("Verde");
        } else if (preco <= 100.00) {
            System.out.println("Vermelho");
            }
        }
        scanner.close();
        }
}  */


        //exercício 10 - 134
    /*  Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
         if (N <= 1 || N >= 10000) {
             System.out.println("Invalid number.");
        } else {
    int i = 1;
         while (i <= N) {
         if (i % 9 == 0) {
             System.out.println(i);
             }
        i++;
        }
    }
    scanner.close();
    }
}  */
        

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: