THOUSANDS OF FREE BLOGGER TEMPLATES

Sabtu, 30 Oktober 2010

listing program aritmatika

public class berhitung {

public static void main(String[] args) {
int o,p,q;
System.out.println("diketahui");
System.out.println("o=10");o=10;
System.out.println("p=
4");p=4;
System.out.println("q=12");q=12;
System.out.println("hasil:");
System.out.println("o*p="+(o*p));
System.out.println("q-o="+(q-o));
System.out.println("q/p="+(q/p));
}
}

0 komentar: