Advertisement
barabanRa

Untitled

Apr 30th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. package com.company;
  2. import java.util.Scanner;
  3.  
  4. public class Main {
  5. public static void main(String[] args) {
  6. int b = new Scanner(System.in).nextInt();
  7. cake(b);
  8. }
  9. public static void cake(int a) {
  10. int b = 0;
  11. while (b <= 9) {
  12. a++;
  13. b++;
  14. System.out.println(a);
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement