Advertisement
Guest User

Dimas Bagus Saputra

a guest
Sep 16th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import java.util.Scanner;
  2. class operatoraritmatika{
  3. public static void main(String[] args){
  4. Scanner oa = new Scanner(System.in);
  5. int v1, v2, hasil;
  6.  
  7. System.out.print ("Input Nilai = ");
  8. v1 = oa.nextInt();
  9. System.out.print ("Input Nilai = ");
  10. v2 = oa.nextInt();
  11. hasil = v1 + v2;
  12. System.out.println(v1 + "+" + v2 + "=" + hasil);
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement