Сjava кодом class homework_lesson1 { public static void main(string[] args) { public void variable() { int a = 15000; short b = 2524; long c = 14555l; float d = 14.0f; double e = 13.5674; boolean f = true; char g = 'q'; } static int calculator(int a, int b, int c, int d) { return a * (b + (c / d)); } static boolean numbers(int a, int b) { if ((a + b) > = 10 & & (a + b) < = 20) return true; else return false; } static void choosethenumber(int a) { if (a > = 0) system.out.println("положительное! "); else system.out.println("отрицательное! "); } static boolean return_number(int a) { if (a < 0) return true; return false; } static void saymyname(string n) { system.out.println("hello, " + n + "! "); } static void differentyears(int y) { if ((y % 400) == 0) system.out.println("високосный"); else if ((y % 100) == 0) system.out.println("невисокосный"); else if ((y % 4) == 0) system.out.println("високосный"); else system.out.println("невисокосный"); выдает ошибки: reached end of file while parsing и illegal start of expression . заранее !

ariana76 ariana76    1   27.09.2019 04:50    0

Ответы
Unicorn261 Unicorn261  08.10.2020 21:56

Двух закрывающих фигурных скобок не хватает в конце. Одна закрывает функцию differentyears, а другая сам класс

ПОКАЗАТЬ ОТВЕТЫ
Другие вопросы по теме Информатика