Skip to content

LetiPimenta/2inf-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

2inf-java

public class case3 { public static void main(String[] args) { Scanner entrada = new Scanner(System.in); int c= 0 System.out.println("informe o valor de a"); int a= entrada.netInt(); System.out.println("informe o valor de b"); int b = entrada.net(); Syrial.println("Informe o codigo,3,4 ou 5"); int codigo = entrada.nextInt(); switch (codigo){

        case 3:
{
    int a = 0;
    int b = 0;
    System.out.println(a=a+b);
}
{
    String a = null;
    System.out.println(a=a+(a*20)/100);
}
{
    String a = null;
    System.out.println(" valor de a+ b + 20% "+a);
}
        
        break;
        case 4: 
{
    int a = 0;
    int b = b-a;
}
String b = b+(b*20)/100;
            System.out.println(" b-a mais 20% "+ b);
            break;
               
        case 5:
int a = a+a;
           a= a-(a*5)/100;
            System.out.println(" valor de a + a - 5% "+a);
            
            break;
       default:
           System.out.println("Código inexistente");
    }  
    }

} public static void main(String[] args) { // TODO code application logic here }

}

Releases

No releases published

Packages

No packages published