Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- class operatoraritmatika{
- public static void main(String[] args){
- Scanner oa = new Scanner(System.in);
- int v1, v2, hasil;
- System.out.print ("Input Nilai = ");
- v1 = oa.nextInt();
- System.out.print ("Input Nilai = ");
- v2 = oa.nextInt();
- hasil = v1 + v2;
- System.out.println(v1 + "+" + v2 + "=" + hasil);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement