Skip to content

LetiPimenta/leticia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

leticia

Scanner entrada = new Scanner(System.in);
int patos = 0; int coelhos = 0; int cabeca = 0; int pes = 0;

    System.out.println("-----------------------------------------------------");
    System.out.println("-        Informe a quantidade de patos              -");
    System.out.println("-----------------------------------------------------");
    patos = entrada.nextInt();
   cabeca = cabeca +(cabeca*patos);
       if (carros >= 5){
           valor = valor +(500*carros);
       }         
       else{
           valor = valor + (1000*carros);
    }  
        System.out.println("-----------------------------------------------------");
        System.out.println("-                  Valor total:"+valor+"            -");
        System.out.println("-----------------------------------------------------");
     }

Releases

No releases published

Packages

No packages published