O codigo é este aqui:
Código:
public class Soma { public static void main( String args[] ) { int Value1 = 0; int Value2 = 0; int Result = 0; System.out.print( "Digite um numero: " ); System.in.read( Value1 ); System.out.println( ); System.out.println( ); System.out.print( "Digite outro numero: " ); System.in.read( Value2 ); Result = Value1 + Value2; System.out.println( "A soma é: " + Result ); } }
Comment