1.03K subscribers
1.77K photos
420 videos
676 files
3.85K links
Download Telegram
Biz ilovaga savolni yubordik.

Savol nomeri: savol_2

Dastur natijasini toping?

Savolni yuklab olish tartibi

Javobini ushbu postning izohlarida qoldiring. Faqat birinchi to'g'ri javob qabul qilinadi. Xabar tahrirlangan (o'zgartirilgan) bo'lsa QABUL QILINMAYDI

Telegram | ViktorinaBot | Portfolio
πŸ‘2πŸ₯°1🀩1
PROGRAMMERS pinned Β«Biz ilovaga savolni yubordik. Savol nomeri: savol_2 Dastur natijasini toping? Savolni yuklab olish tartibi Javobini ushbu postning izohlarida qoldiring. Faqat birinchi to'g'ri javob qabul qilinadi. Xabar tahrirlangan (o'zgartirilgan) bo'lsa QABUL QILINMAYDI…»
Yutuq to'lab berildi

Telegram | ViktorinaBot | Portfolio
πŸ”₯2πŸ‘1
16:00 da ushbu ilovaga yuborilgan savol.

savolning tartib raqami: savol_2

To'g'ri javob:
P = 32
S = 43.818

Telegram | ViktorinaBot | Portfolio
πŸ‘1πŸ₯°1
O'yinda ishtirok etgan barchaga rahmat. Keyingi o'yinlarga do'stlaringizni ham taklif qiling.

Sovrinli o'yin shartlari to'liq bu yerda keltirilgan.

Do'stlaringizga mana shu postni yuboring πŸ˜‰

Telegram | ViktorinaBot | Portfolio
πŸ‘2❀1πŸ‘1
PROGRAMMERS pinned Β«O'yinda ishtirok etgan barchaga rahmat. Keyingi o'yinlarga do'stlaringizni ham taklif qiling. Sovrinli o'yin shartlari to'liq bu yerda keltirilgan. Do'stlaringizga mana shu postni yuboring πŸ˜‰ Telegram | ViktorinaBot | PortfolioΒ»
#javob_java_boolean_10

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
boolean bool = (a % 2 == 0 && b % 2 != 0) || (a % 2 != 0 && b % 2 == 0);
System.out.println(bool);
}

Telegram | Viktorina bot | Portfolio
πŸ‘2πŸ‘1🀩1
Nodze @BaratovNodirbek ni fikriga qo'shilganlar πŸ‘

Telegram | Viktorina bot | Portfolio
πŸ‘9😁3
πŸ‘1πŸ”₯1🀩1
πŸ‘1πŸ”₯1🀩1
#javob
#case8
Java dasturlash tilida

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("day = ");
int d = scanner.nextInt();
System.out.print("month = ");
int m = scanner.nextInt();
switch (m) {
case 1, 3, 5, 7, 8, 10, 12 -> {
if (d <= 31 && m == 1) {
System.out.print(d + " - " + "yanvar");
} else if (d <= 31 && m == 3) {
System.out.print(d + " - " + "mart");
} else if (d <= 31 && m == 5) {
System.out.print(d + " - " + "may");
} else if (d <= 31 && m == 7) {
System.out.print(d + " - " + "iyul");
} else if (d <= 31 && m == 8) {
System.out.print(d + " - " + "avgust");
} else if (d <= 31 && m == 10) {
System.out.print(d + " - " + "oktabr");
} else if (d <= 31) {
System.out.print(d + " - " + "dekabr");
} else {
System.out.println("Bunday kun yo'q");
}
}
case 2 -> {
if (d <= 28) {
System.out.print(d + " - " + "fevral");
} else {
System.out.println("Bunday kun yo'q");
}
}
case 4, 6, 9, 11 -> {
if (d <= 30 && m == 4) {
System.out.print(d + " - " + "aprel");
} else if (d <= 30 && m == 6) {
System.out.print(d + " - " + "iyun");
} else if (d <= 30 && m == 9) {
System.out.print(d + " - " + "sentabr");
} else if (d <= 30) {
System.out.print(d + " - " + "noyabr");
} else {
System.out.println("Bunday kun yo'q");
}
}
default -> System.out.println("Kun uchun 1 - 31 oralig'ida kiriting \n" +
"Oy uchun 1 - 12 oralig'ida kiriting");
}
}

Telegram | Viktorina bot | Portfolio
πŸ‘2❀1πŸ‘1
πŸ‘1πŸ”₯1πŸ‘1
#javob
#case8
Kotlin dasturlash tilida

fun main() {
print("day = ")
val d = readLine()!!.toInt()
print("month = ")
val m = readLine()!!.toInt()
when (m) {
1, 3, 5, 7, 8, 10, 12 -> {
if (d <= 31 && m == 1) {
print("$d - yanvar")
} else if (d <= 31 && m == 3) {
print("$d - mart")
} else if (d <= 31 && m == 5) {
print("$d - may")
} else if (d <= 31 && m == 7) {
print("$d - iyul")
} else if (d <= 31 && m == 8) {
print("$d - avgust")
} else if (d <= 31 && m == 10) {
print("$d - oktabr")
} else if (d <= 31) {
print("$d - dekabr")
} else {
println("Bunday kun yo'q")
}
}
2 -> {
if (d <= 28) {
print("$d - fevral")
} else {
println("Bunday kun yo'q")
}
}
4, 6, 9, 11 -> {
if (d <= 30 && m == 4) {
print("$d - aprel")
} else if (d <= 30 && m == 6) {
print("$d - iyun")
} else if (d <= 30 && m == 9) {
print("$d - sentabr")
} else if (d <= 30) {
print("$d - noyabr")
} else {
println("Bunday kun yo'q")
}
}
else -> println(
"Kun uchun 1 - 31 oralig'ida kiriting \n" +
"Oy uchun 1 - 12 oralig'ida kiriting"
)
}
}

Telegram | Viktorina bot | Portfolio
❀1πŸ‘1πŸ”₯1🀩1
#javob_java_boolean_11

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
boolean bool = (a % 2 == 0 && b % 2 == 0) || (a % 2 != 0 && b % 2 != 0);
System.out.println(bool);
}

Telegram | Viktorina bot | Portfolio
πŸ₯°2❀1πŸ‘1πŸ‘1🀩1
πŸ‘1πŸ₯°1πŸ‘1
❀1πŸ₯°1🀩1
#javob
#case9
Java dasturlash tilida

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int d = scanner.nextInt();
int m = scanner.nextInt();
switch (m) {
case 1, 3, 5, 7, 8, 10 -> {
if (d < 31) {
d++;
System.out.print(d + " " + m);
} else if (d == 31) {
d = 1;
m++;
System.out.print(d + " " + m);
} else {
System.out.println("Bunday sana yo'q");
}
}
case 2 -> {
if (d < 28) {
d++;
System.out.print(d + " " + m);
} else if (d == 28) {
d = 1;
m++;
System.out.print(d + " " + m);
} else {
System.out.println("Bunday sana yo'q");
}
}
case 4, 6, 9, 11 -> {
if (d < 30) {
d++;
System.out.print(d + " " + m);
} else if (d == 30) {
d = 1;
m++;
System.out.print(d + " " + m);
} else {
System.out.println("Bunday sana yo'q");
}
}
case 12 -> {
if (d == 31) {
d = 1;
m = 1;
System.out.print(d + " " + m);
} else if (d < 31) {
d++;
System.out.print(d + " " + m);
} else {
System.out.println("Bunday sana yo'q");
}
}
default -> System.out.println("Bunday oy yo'q");
}
}

Telegram | Viktorina bot | Portfolio
❀1πŸ”₯1πŸ₯°1
❀1πŸ‘1πŸ₯°1
#javob
#case9
Kotlin dasturlash tilida

fun main() {
var d = readLine()!!.toInt()
var m = readLine()!!.toInt()
when (m) {
1, 3, 5, 7, 8, 10 -> {
if (d < 31) {
d++
print("$d $m")
} else if (d == 31) {
d = 1
m++
print("$d $m")
} else {
println("Bunday sana yo'q")
}
}
2 -> {
if (d < 28) {
d++
print("$d $m")
} else if (d == 28) {
d = 1
m++
print("$d $m")
} else {
println("Bunday sana yo'q")
}
}
4, 6, 9, 11 -> {
if (d < 30) {
d++
print("$d $m")
} else if (d == 30) {
d = 1
m++
print("$d $m")
} else {
println("Bunday sana yo'q")
}
}
12 -> {
if (d == 31) {
d = 1
m = 1
print("$d $m")
} else if (d < 31) {
d++
print("$d $m")
} else {
println("Bunday sana yo'q")
}
}
else -> println("Bunday oy yo'q")
}
}

Telegram | Viktorina bot | Portfolio
❀1πŸ₯°1🀩1
#javob_java_boolean_12

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
boolean bool = ((a > 0) && (b > 0) && (c > 0));
System.out.println(bool);
}

Telegram | Viktorina bot | Portfolio
πŸ‘1πŸ”₯1πŸ‘1
❀1πŸ‘1πŸ”₯1πŸ‘1