contoh aritmatika dasar1

// program aritmatika dasar
class AritmatikaDasar1{
public static void main(String[] args){


short a = 17;
int b = 14;
float c =13.5f;
float d = 8f;

System.out.println();
System.out.println("a = " +a+ ",b = "+b );
System.out.println("a + b = "+(a+b));
System.out.println("a - b = "+(a-b));
System.out.println("a / b = "+(a/b));
System.out.println("a % b = "+(a%b));
System.out.println("c = "+c);
System.out.println("d = "+d);
System.out.println();
}
}