1.03K subscribers
1.77K photos
420 videos
676 files
3.84K links
Download Telegram
👍2❤‍🔥1🏆1🤓1
#javob_cpp_case_3

#include <bits/stdc++.h>

using namespace std;

int main(){
int n;
cout << "n = ";
cin >> n;
switch (n) {
case 1: cout << "Qish"; break;
case 2: cout <<"Qish"; break;
case 3: cout <<"Bahor"; break;
case 4: cout <<"Bahor"; break;
case 5: cout <<"Bahor"; break;
case 6: cout << "Yoz"; break;
case 7: cout <<"Yoz"; break;
case 8: cout <<"Yoz"; break;
case 9: cout <<"Kuz"; break;
case 10: cout <<"Kuz"; break;
case 11: cout <<"Kuz"; break;
case 12: cout <<"Qish"; break;
default: cout <<"Xato"; break;
}
}

Telegram | Viktorina bot | Portfolio | YouTube
❤‍🔥21👏1🏆1
1👍1🔥1🏆1
#javob_cpp_case_4

#include <bits/stdc++.h>

using namespace std;

int main(){
int n;
cout << "n = ";
cin >> n;
switch (n) {
case 1: cout << "31"; break;
case 2: cout <<"28"; break;
case 3: cout <<"31"; break;
case 4: cout <<"30"; break;
case 5: cout <<"31"; break;
case 6: cout << "30"; break;
case 7: cout <<"31"; break;
case 8: cout <<"30"; break;
case 9: cout <<"30"; break;
case 10: cout <<"31"; break;
case 11: cout <<"30"; break;
case 12: cout <<"31"; break;
default: cout <<"Xato"; break;
}
}

Telegram | Viktorina bot | Portfolio | YouTube
11❤‍🔥1👍1🐳1🤓1
❤‍🔥2🔥21👍1🏆1
#javob_cpp_case_5

#include <iostream>
using namespace std;

int main() {
char oper;
float num1, num2;
cout << "Enter an operator (+, -, *, /): ";
cin >> oper;
cout << "Enter two numbers: " << endl;
cin >> num1 >> num2;

switch (oper) {
case '+':
cout << num1 << " + " << num2 << " = " << num1 + num2;
break;
case '-':
cout << num1 << " - " << num2 << " = " << num1 - num2;
break;
case '*':
cout << num1 << " * " << num2 << " = " << num1 * num2;
break;
case '/':
cout << num1 << " / " << num2 << " = " << num1 / num2;
break;
default:
cout << "Error! The operator is not correct";
break;
}

return 0;
}

Telegram | Viktorina bot | Portfolio | YouTube
1❤‍🔥1🏆1
👍21👏1
Forwarded from SUBYEKTIV
Media is too big
VIEW IN TELEGRAM
Google’dan har kuni foydalanamiz, lekin uni ofisini hech ko’rganmizmi? 🇺🇸
👉🏼 @subyektivuz
👏21👍1
#javob_cpp_case_6

#include <bits/stdc++.h>

using namespace std;

int main(){
int n,a;
cout << "Uzunlikni kiriting = ";
cin >> a;
cout << "1. desimetr \n2. kilometr\n3. metr\n4. millimetr\n5. santimetr";
cout << "Yuqoridagi amallardan birini tanlang: ";
cin >> n;
switch (n) {
case 1: cout << a << " desimetr = " << (a / 10) << " metr"; break;
case 2: cout << a << " kilometr = " << (a * 1000) << " metr"; break;
case 3: cout << a << " metr = " << (a) << " metr"; break;
case 4: cout << a << " millimetr = " << (a / 1000) << " metr"; break;
case 5: cout << a << " santimetr = " << (a / 100) << " metr"; break;
default: cout << "Xato"; break;
}
}

Telegram | Viktorina bot | Portfolio | YouTube
❤‍🔥1👍1🔥1
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 Java bobigagi If bo'limiga yangi savollar va ularning javoblarini qo'shdik.

Viktorina bot

Telegram | ViktorinBot | Portfolio | YouTube
❤‍🔥11👍1🔥1👌1
Kotlin

Bugun YouTube kanalimizda Kotlin dasturlash tilida tayyorlangan navbatdagi videodarslik chiqadi

Premyera 19.03.2023 19:00
Kotlin dasturlash tilida increment va decrement

Telegram | ViktorinBot | Portfolio | YouTube
👍31🏆1
👍1🔥1👏1
#javob_cpp_case_7

#include <bits/stdc++.h>

using namespace std;

int main(){
int n;
float a;
cout << "O'girlik kiriting = ";
cin >> a;
cout << "1. kilogramm \n2. milligramm\n3. gramm\n4. tonna\n5. sentner";
cout << "Yuqoridagi amallardan birini tanlang: ";
cin >> n;
switch (n) {
case 1: cout << a << " kilogramm = " << a << " kilogramm"; break;
case 2: cout << a << " milligramm = " << (a / 1000000) << " kilogramm"; break;
case 3: cout << a << " gramm = " << (a / 1000) << " kilogramm"; break;
case 4: cout << a << " tonna = " << (a * 1000) << " kilogramm"; break;
case 5: cout << a << " sentner = " << (a * 100) << " kilogramm"; break;
default: cout << "Xato"; break;
}
}

Telegram | Viktorina bot | Portfolio | YouTube
1👍1🏆1
Navro'z bayramingiz muborak bo'lsin. Huddi shu tugmachadek kuchli bo'ling

Telegram | Viktorina bot | Portfolio | YouTube
🤣8😁4👍2🐳1
❤‍🔥1👍1🏆1
1👍1👏1
#javob_cpp_case_8

#include <bits/stdc++.h>

using namespace std;

int main(){
int d, m;
cout << "(1 - 31) oraliqdagi son kiriting: ";
cin >> d;
cout << "(1 - 12) oraliqdagi son kiriting: ";
cin >> m;
switch (m) {
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12: {
if (d <= 31 && m == 1) {
cout << d << " - yanvar";
} else if (d <= 31 && m == 3) {
cout << d << " - mart";
} else if (d <= 31 && m == 5) {
cout << d << " - may";
} else if (d <= 31 && m == 7) {
cout << d << " - iyul";
} else if (d <= 31 && m == 8) {
cout << d << " - avgust";
} else if (d <= 31 && m == 10) {
cout << d << " - oktabr";
} else if (d <= 31) {
cout << d << " - dekabr";
} else {
cout << "Bunday kun yo'q";
}
} break;
case 4:
case 6:
case 9:
case 11: {
if (d <= 30 && m == 4) {
cout << d << " - aprel";
} else if (d <= 30 && m == 6) {
cout << d << " - iyun";
} else if (d <= 30 && m == 9) {
cout << d << " - sentabr";
} else if (d <= 30) {
cout << d << " - noyabr";
} else {
cout << "Bunday kun yo'q";
}
} break;
case 2: {
if (d <= 28) {
cout << d << " - fevral";
} else {
cout << "Bunday kun yo'q";
}
} break;
default: cout << "Xato";
}
}

Telegram | Viktorina bot | Portfolio | YouTube
👍2🔥1🤩1
❤‍🔥1👍1🐳1
❤‍🔥1👍1🔥1