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