import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication1;
class input2bil
{ public static void main(String abc[]) throws IOException
{ String S;
int A,B,T;
InputStreamReader Y = new InputStreamReader(System.in);
BufferedReader Z = new BufferedReader(Y);
System.out.println("masukan bilangan pertama:");
A = Integer.parseInt(Z.readLine());
System.out.println("masukan bilangan kedua:");
B = Integer.parseInt(Z.readLine());
T = A + B;
System.out.println("Hasil jumlahnya adalah:" +T);
}
}
OUTPUT:
thanks bro
BalasHapusya sama"...
HapusThanks gan
BalasHapus