Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. package pbo;
  2. import java.util.Scanner;
  3. public class ProgramInputOutput017 {
  4. public static void main(String[] args) {
  5. Scanner sc = new Scanner(System.in);
  6. int a,b;
  7. System.out.print("Input BilBul A: ");
  8. a = sc.nextInt();
  9. System.out.print("Input BilBul B: ");
  10. b = sc.nextInt();
  11. for(int i=a;i<=b;i++){
  12. System.out.print(i);
  13. if((i%3)==0){
  14. System.out.println(" adalah bilangan KELIPATAN TIGA");
  15. }else{
  16. System.out.println();
  17. }
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement