#javob_kotlin_case_19
fun main() {
val scanner = Scanner(System.
var year = scanner.nextInt()
year -= 1983
year %= 60
val colour = year % 5
val animal = year % 12
when (colour) {
0 -> print("Qora ")
1 -> print("Yashil ")
2 -> print("Qizil ")
3 -> print("Sariq ")
4 -> print("Oq ")
}
when (animal) {
0 -> print("To`ng`iz ")
1 -> print("Sichqon ")
2 -> print("Sigir ")
3 -> print("Yo`lbars ")
4 -> print("Quyon ")
5 -> print("Ajdar ")
6 -> print("Ilon ")
7 -> print("Ot ")
8 -> print("Qo`y ")
9 -> print("Maymun ")
10 -> print("Tovuq ")
11 -> print("It ")
}
println("yili")
}
Telegram | Viktorina bot | Portfolio | YouTube
fun main() {
val scanner = Scanner(System.
in)var year = scanner.nextInt()
year -= 1983
year %= 60
val colour = year % 5
val animal = year % 12
when (colour) {
0 -> print("Qora ")
1 -> print("Yashil ")
2 -> print("Qizil ")
3 -> print("Sariq ")
4 -> print("Oq ")
}
when (animal) {
0 -> print("To`ng`iz ")
1 -> print("Sichqon ")
2 -> print("Sigir ")
3 -> print("Yo`lbars ")
4 -> print("Quyon ")
5 -> print("Ajdar ")
6 -> print("Ilon ")
7 -> print("Ot ")
8 -> print("Qo`y ")
9 -> print("Maymun ")
10 -> print("Tovuq ")
11 -> print("It ")
}
println("yili")
}
Telegram | Viktorina bot | Portfolio | YouTube
π2β€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
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
Telegram
ProgrammersQuiz
@Programmers_Dasturchi
π1π₯1π1π1
#javob_cpp_case_1
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cout << "n = ";
cin >> n;
switch (n) {
case 1: cout << "Dushanba"; break;
case 2: cout <<"Seshanba"; break;
case 3: cout <<"Chorshanba"; break;
case 4: cout <<"Payshanba"; break;
case 5: cout <<"Juma"; break;
case 6: cout <<"Shanba"; break;
case 7: cout <<"Yakshanba"; break;
default: cout <<"Bunday kun yo'q"; break;
}
}
Telegram | Viktorina bot | Portfolio | YouTube
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cout << "n = ";
cin >> n;
switch (n) {
case 1: cout << "Dushanba"; break;
case 2: cout <<"Seshanba"; break;
case 3: cout <<"Chorshanba"; break;
case 4: cout <<"Payshanba"; break;
case 5: cout <<"Juma"; break;
case 6: cout <<"Shanba"; break;
case 7: cout <<"Yakshanba"; break;
default: cout <<"Bunday kun yo'q"; break;
}
}
Telegram | Viktorina bot | Portfolio | YouTube
β‘1β€βπ₯1π1
#javob_cpp_case_2
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cout << "n = ";
cin >> n;
switch (n) {
case 1: cout << "Yomon"; break;
case 2: cout <<"Qoniqarsiz"; break;
case 3: cout <<"Qoniqarli"; break;
case 4: cout <<"Yaxshi"; break;
case 5: cout <<"A'lo"; break;
default: cout <<"Xato"; break;
}
}
Telegram | Viktorina bot | Portfolio | YouTube
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cout << "n = ";
cin >> n;
switch (n) {
case 1: cout << "Yomon"; break;
case 2: cout <<"Qoniqarsiz"; break;
case 3: cout <<"Qoniqarli"; break;
case 4: cout <<"Yaxshi"; break;
case 5: cout <<"A'lo"; break;
default: cout <<"Xato"; break;
}
}
Telegram | Viktorina bot | Portfolio | YouTube
β‘3β€βπ₯1π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
#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
β€βπ₯2β‘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
#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
β€1β‘1β€βπ₯1π1π³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
#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
Forwarded from SUBYEKTIV
Media is too big
VIEW IN TELEGRAM
Googleβdan har kuni foydalanamiz, lekin uni ofisini hech koβrganmizmi? πΊπΈ
ππΌ @subyektivuz
ππΌ @subyektivuz
π2β‘1π1