Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import java.io.*;
  2. public class Silmukka {
  3. public static void main(String[] args)
  4. {
  5. BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); //lukija
  6.  
  7. int n;
  8. int eka_luku;
  9.  
  10. for (eka_luku = 1; eka_luku <= n; eka_luku++)
  11.  
  12. {
  13. System.out.println("Anna kokonaisluku:");
  14. n = Integer.parseInt(in.readLine());
  15. System.out.println(eka_luku + 1);
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement