Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package exercicios;
- import java.util.Scanner;
- public class deznumerosmetade {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int i;
- float metade;
- for(i = 1;i<=10;i++){
- System.out.println("Digite o " +i+ "ΒΊ nΓΊmero: ");
- metade = sc.nextFloat();
- System.out.println("Metade: "+metade/2);
- }
- }
- }
- // entrar com 10 numeros e imprimir a metade de cada um
Add Comment
Please, Sign In to add comment