Theweekweek. Powered by Blogger.
RSS

Program Java Jeliot Bilangan Positif dan Negatif

import jeliot.io.*;

public class MyClass {
    public static void main() {
        // Your algorithm goes here.
int a;
System.out.print("Masukkan bilangan : ");
a= Input.readInt();
System.out.print("bilangan yang diinputkan, ");
if (a>=0){
System.out.println("positif");


}
else {
System.out.println("negatif");
}
    }
}


  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 komentar:

Post a Comment