Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pbo;
- import java.util.Scanner;
- public class ProgramInputOutput017 {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int a,b;
- System.out.print("Input BilBul A: ");
- a = sc.nextInt();
- System.out.print("Input BilBul B: ");
- b = sc.nextInt();
- for(int i=a;i<=b;i++){
- System.out.print(i);
- if((i%3)==0){
- System.out.println(" adalah bilangan KELIPATAN TIGA");
- }else{
- System.out.println();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement