Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class Main {
- public static void main(String[] args) {
- Scanner in = new Scanner(System.in);
- System.out.println("0. Введите размер шоколадки:");
- int n = in.nextInt();
- int[] c = new int[n];
- System.out.println("1. Введите шоколадку");
- for (int i = 0; i < n; i++) {
- c[i] = in.nextInt();
- }
- System.out.println("2. Введите день рождения");
- int d = in.nextInt();
- System.out.println("3. Введите месяц рождения");
- int m = in.nextInt();
- int result = func(c, n, d, m);
- System.out.println(result);
- in.close();
- }
- static int func(int[] c, int n, int d, int m) {
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement