Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- public class Silmukka {
- public static void main(String[] args)
- {
- BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); //lukija
- int n;
- int eka_luku;
- for (eka_luku = 1; eka_luku <= n; eka_luku++)
- {
- System.out.println("Anna kokonaisluku:");
- n = Integer.parseInt(in.readLine());
- System.out.println(eka_luku + 1);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement