oleh:
arif zainurrohman
import java.util.Scanner;
class operator {
public static void main (String [] args)
{
int a;
int b ;
Scanner sc = new Scanner(System.in);
System.out.print ("Masukkan nilai 1 : "); a = sc.nextInt();
System.out.print ("Masukkan nilai 2 : "); b = sc.nextInt();
int hasil = a+b;
System.out.println("Hasilnya " +hasil);
}
}
class operator {
public static void main (String [] args)
{
int a;
int b ;
Scanner sc = new Scanner(System.in);
System.out.print ("Masukkan nilai 1 : "); a = sc.nextInt();
System.out.print ("Masukkan nilai 2 : "); b = sc.nextInt();
int hasil = a+b;
System.out.println("Hasilnya " +hasil);
}
}
Praktikum
Ibu kota , 5 muharram 1435 H
0 komentar:
Posting Komentar