/*INSTALAR O SUBLIME TEXT E SER SE RODA NO JAVA*/
import java.lang.Math.*;
import java.util.Scanner; 
 
public class Exercicio4
{
		public static void main (String args [])
		{new Exercicio4(); }
		///
		Scanner Teclado	= new Scanner (System.in); 
		double Res = 0; 
		int x ,y; 
			
		public  Exercicio4()
		{
				System.out.print("DIGITE O VALOR DE X");
				x = Teclado.nextInt(); 
				System.out.print("DIGITE O VALOR DE Y");
				y = Integer.parseInt(Teclado.nextLine()); 
					
				System.out.println("OPERAÇÃO DE SOMA DE VARIAVEIS");
				Res = x + y;
				System.out.println(x +" + " + y + " = " +Res );
				System.out.println("OPERAÇÃO DE SUBTRAÇÃO DE VARIAVEIS");
				Res = x - y;
				System.out.println(x +" - " + y + " = "+ Res );	
				System.out.println("OPERAÇÃO DE MULTIPLICAÇÃO DE VARIAVEIS");
				Res = x * y;
				System.out.println(x +" * " + y + " = "+ Res );	
				System.out.println("OPERAÇÃO DE DIVISÃO DE VARIAVEIS");
				Res = (double) x / y;
				System.out.println(x +" / " + y + " = "+ Res );	
  				System.out.println("A divisão de 108 /4  = "+ (Res = 108/4  ));	
				System.out.println("OPERAÇÃO DE EXPONENCIAL");
				Res = Math.pow(3, 4);
				System.out.println("3 elevado a 4 =" + Res );		
				System.out.println("OPERAÇÃO DE RESTO");
				Res = 3 % 4;
				System.out.println("o RESTO DA DIVISÃO DE 3 POR 4 =" + Res );		
				System.out.println("A RAIZ QUADRADA DE " + x  +" = " + (Res= Math.sqrt(x)));
																																				
				//System.out.println("OPERAÇÃO DE SOMA DE VARIAVEIS");
			//	Res = x - y;
				

		}

	
}
