Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Zadanie_6 {
- public static void main(String[] args) {
- int a;
- int b=1;
- System.out.println("Podaj liczbe");
- Scanner scanner = new Scanner(System.in);
- a = scanner.nextInt();
- while(b<=a) {
- System.out.println(b++);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement