es
Feedback
967
Suscriptores
Sin datos24 horas
-67 días
-1930 días
Archivo de publicaciones
Assalomu aleykum Xurmatli dasturchilar. PROGRAMMERS kanalimizda savol - javob viktorinasini olib borayapmiz. Viktorinamizda berilayotgan savollar va javobllar yuqorida qolib ketganligini hisobga olgan holatda, viktorinamizdagi savol javoblarni @programmersQuiz_bot botiga joylab borayapmiz. Botga a'zo bo'ling. Hali savollar oldida ... Botdagi C++ bobidagi Boolean bo'limini yakunladik. Viktorina bot Telegram | ViktorinBot | Portfolio | YouTube

#javob_java_case_15 public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("1 - g'isht \n2 - olma\n" + "3 - chillak \n4 - qarg'a"); System.out.print("Yuqoridagilardan birini tanlang: "); int k = scanner.nextInt(); System.out.print("Karta qiymatini kiriting: "); int n = scanner.nextInt(); switch (n) { case 6 -> System.out.print("olti "); case 7 -> System.out.print("yetti "); case 8 -> System.out.print("sakkiz "); case 9 -> System.out.print("to'qqiz "); case 10 -> System.out.print("o'n "); case 11 -> System.out.print("valet "); case 12 -> System.out.print("dama "); case 13 -> System.out.print("qirol "); case 14 -> System.out.print("tuz "); } switch (k) { case 1 -> System.out.println("g'isht"); case 2 -> System.out.println("olma"); case 3 -> System.out.println("chillak"); case 4 -> System.out.println("qarg'a"); } } Telegram | Viktorina bot | Portfolio | YouTube

#javob_java_case_15 Telegram | Viktorina bot | Portfolio | YouTube
#javob_java_case_15 Telegram | Viktorina bot | Portfolio | YouTube

#savol_java_case_15 Telegram | Viktorina bot | Portfolio | YouTube
#savol_java_case_15 Telegram | Viktorina bot | Portfolio | YouTube

#javob_java_case_14 public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("1 - tomoni \n2 - ichki chizilgan aylana radiusi\n" + "3 - tashqi chizilgan aylana radiusi \n4 - yuzasi"); System.out.print("Yuqoridagilardan birini tanlang: "); int n = scanner.nextInt(); switch (n) { case 1 -> { System.out.print("a = "); double a = scanner.nextDouble(); double r1 = a * Math.sqrt(3) / 6; double r2 = 2 * r1; double s = a * a * Math.sqrt(3) / 4; System.out.println("R1 = " + r1); System.out.println("R2 = " + r2); System.out.println("S = " + s); } case 2 -> { System.out.print("R1 = "); double r1 = scanner.nextDouble(); double a = 6 * r1 / Math.sqrt(3); double r2 = 2 * r1; double s = a * a * Math.sqrt(3) / 4; System.out.println("a = " + a); System.out.println("R2 = " + r2); System.out.println("S = " + s); } case 3 -> { System.out.print("R2 = "); double r2 = scanner.nextDouble(); double r1 = r2 / 2; double a = 6 * r1 / Math.sqrt(3); double s = a * a * Math.sqrt(3) / 4; System.out.println("a = " + a); System.out.println("R1 = " + r1); System.out.println("S = " + s); } case 4 -> { System.out.print("S = "); double s = scanner.nextDouble(); double a = Math.sqrt((4 * s) / Math.sqrt(3)); double r1 = a * Math.sqrt(3) / 6; double r2 = 2 * r1; System.out.println("a = " + a); System.out.println("R1 = " + r1); System.out.println("R2 = " + r2); } default -> System.out.println("Xato"); } } Telegram | Viktorina bot | Portfolio | YouTube

#javob_java_case_14 Telegram | Viktorina bot | Portfolio | YouTube
#javob_java_case_14 Telegram | Viktorina bot | Portfolio | YouTube

📣Diqqat e’lon! Yuqorida ko’rsatilgan korxonalarning “Dasturlash” jamoasi uchun mavjud vakansiyalar. Dasturchilar: 🔍Beckend
📣Diqqat e’lon! Yuqorida ko’rsatilgan korxonalarning “Dasturlash” jamoasi uchun mavjud vakansiyalar. Dasturchilar: 🔍Beckend (Middle, senior) 🔍Frontend (Middle, senior) 🔍Mobile (Middle, senior) 🔍Dizayner Web+mobile(Middle, senior) Barchasi uchun stong junior dasturchilar ham anketa to’ldirishi mumkin. Kelajak uchun harakati bor, o’ziga ishongan yigit-qizlarni safimizga taklif etamiz. Talab qilinadi!!! ➖Halollik ➖O’z ustida ishlash ➖Intizomga rioya qilish Qulayliklar: ✅Kariyera imkoniyati (sohada o’sish va rivojlanish) Yaxshi oylik ✅Do’stona hamkasblar ✅Doimiy ish o'rni ✅Bilim olish ✅Yetakchi tashkilot a’zosi bo’lish 💸Maosh (tajribaga qarab) Manzil Qoʻqon shaxar Ish vaqti: ⏰Mavsumga qarab o’zgaradi, suhbat jarayonida aytiladi. Ro’yxatdan o’tish👈 Murojaat uchun: +998916991221 +998937347700

#savol_java_case_14 Telegram | Viktorina bot | Portfolio | YouTube
#savol_java_case_14 Telegram | Viktorina bot | Portfolio | YouTube

#javob_java_case_13 public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("1 - katet \n2 - gipotenuza\n3 - balandlik"); System.out.print("Yuqoridagilardan birini tanlang: "); int n = scanner.nextInt(); switch (n) { case 1 -> { System.out.print("a = "); double a = scanner.nextDouble(); double c = a * Math.sqrt(2); double h = c / 2; double s = c * h / 2; System.out.println("c = " + c); System.out.println("h = " + h); System.out.println("s = " + s); } case 2 -> { System.out.print("c = "); double c = scanner.nextDouble(); double a = c / Math.sqrt(2); double h = c / 2; double s = c * h / 2; System.out.println("a = " + a); System.out.println("h = " + h); System.out.println("s = " + s); } case 3 -> { System.out.print("h = "); double h = scanner.nextDouble(); double c = 2 * h; double a = c / Math.sqrt(2); double s = c * h / 2; System.out.println("a = " + a); System.out.println("c = " + c); System.out.println("s = " + s); } default -> System.out.println("Xato"); } } Telegram | Viktorina bot | Portfolio | YouTube

#javob_java_case_13 Telegram | Viktorina bot | Portfolio | YouTube
#javob_java_case_13 Telegram | Viktorina bot | Portfolio | YouTube

Java dasturlash tilida o'zgaruvchilarni e'lon qilishdan avval uning toifasi ko'rsatiladi. Misol uchun: int number; String str; Kotlin dasturlash tilida esa, o'zgaruvchilarni e'lon qilishdan avval val (value) yoki var (variable) yoziladi Misol uchun: var counter val str Qachon val, qachon var yozamiz? Agar boshlang'ich berilgan qiymat dastur ishlashi davomida o'zgarmasa val, aks holda var yoziladi. Telegram | ViktorinBot | Portfolio | YouTube

#savol_java_case_13 Telegram | Viktorina bot | Portfolio | YouTube
#savol_java_case_13 Telegram | Viktorina bot | Portfolio | YouTube

#javob_java_case_12 public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("1 - radius \n2 - diametr\n3 - uzunlik\n4 - doiraning yuzasi"); System.out.print("Yuqoridagilardan birini tanlang: "); int n = scanner.nextInt(); switch (n) { case 1 -> { System.out.print("R = "); double r = scanner.nextDouble(); double d = 2 * r; double l = 2 * Math.PI * r; double s = Math.PI * r * r; System.out.println("D = " + d); System.out.println("L = " + l); System.out.println("S = " + s); } case 2 -> { System.out.print("D = "); double d = scanner.nextDouble(); double r = d / 2; double l = 2 * Math.PI * r; double s = Math.PI * r * r; System.out.println("R = " + r); System.out.println("L = " + l); System.out.println("S = " + s); } case 3 -> { System.out.print("L = "); double l = scanner.nextDouble(); double r = l / (2 * Math.PI); double d = 2 * r; double s = Math.PI * r * r; System.out.println("R = " + r); System.out.println("D = " + d); System.out.println("S = " + s); } case 4 -> { System.out.print("S = "); double s = scanner.nextDouble(); double r = Math.sqrt(s / Math.PI); double d = 2 * r; double l = Math.PI * 2 * r; System.out.println("R = " + r); System.out.println("D = " + d); System.out.println("L = " + l); } default -> System.out.println("Xato"); } } Telegram | Viktorina bot | Portfolio | YouTube

#javob_java_case_12 Telegram | Viktorina bot | Portfolio | YouTube
#javob_java_case_12 Telegram | Viktorina bot | Portfolio | YouTube