Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class StartWare0003 {
- public static void main(String[] args) {
- // Nama:Patimah Nim:D0217019 kelas:Informatikan.C
- Scanner a = new Scanner(System.in);
- System.out.println("INPUT: ");
- int bil = a.nextInt();
- System.out.println("OUTPUT: ");
- if (bil >= 1) {
- for (int i = 1; i <= bil; i++)
- System.out.print(i);
- }
- else {
- System.out.print("UNDEFINED");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement