1.03K subscribers
1.77K photos
420 videos
676 files
3.84K links
Download Telegram
❤‍🔥1👍1🔥1
#javob_cpp_case_9

#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: {
if (d == 31) {
d = 1;
m++;
cout << d << " " << m;
} else if (d <= 30) {
d++;
cout << d << " " << m;
} else {
cout << "kun yoki oyni ";
}
} break;
case 4:
case 6:
case 9:
case 11: {
if (d == 30) {
d = 1;
m++;
cout << d << " " << m;
} else {
d++;
cout << d << " " << m;
}
} break;
case 2: {
if (d == 28) {
d = 1;
m++;
cout << d << " " << m;
} else {
d++;
cout << d << " " << m;
}
} break;
case 12: {
if (d <= 30) {
d++;
cout << d << " " << m;
}
else if (d == 31) {
d = 1;
m = 1;
cout << d << " " << m;
}
} break;
default: cout << "Xato";
}
}

Telegram | Viktorina bot | Portfolio | YouTube
👍211👏1
1🔥1👏1🏆1
Quyida Jav dasturlash tilini o'rganish uchun top 6 ta bepul saytlar keltirib o'tilgan !

1. Codecademy - www.codecademy.com
2. Educative - www.educative.io
3. Udemy - www.udemy.com
4. Jetbrains - www.hyperskill.org
5. W3schools - www.w3schools.com/java
6. Tutorialspoint - www.tutorialspoint.com

Telegram | Viktorina bot | Portfolio | YouTube
👍2👏1🏆1
#javob_cpp_case_10

#include <bits/stdc++.h>

using namespace std;

int main(){
int n;
char s;
cout << "s - shimol \nj - janub\nq -> sharq\ng -> g'arb";
cout << "Yo'nalishlardan birini tanlang: ";
cin >> s;
cout << "0 -> harakatni davom ettir \n1 -> chapga buril\n2 -> o'ngga buril";
cout << "Komandalardan birini tanlang: ";
cin >> n;
switch (s) {
case 's': cout << "Shimolga "; break;
case 'j': cout << "Janubga "; break;
case 'q': cout << "Sharqga "; break;
case 'g': cout << "G'arbga "; break;
}
switch (n){
case 0: cout << "harakatni davom ettir"; break;
case 1: cout << "chapga buril"; break;
case 2: cout << "o'ngga buril"; break;
}
}

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

#include <bits/stdc++.h>

using namespace std;

int main(){
int k1, k2;
char s;
cout << "s - shimol \nj - janub\nq -> sharq\ng -> g'arb";
cout << "Yo'nalishlardan birini tanlang: ";
cin >> s;
cout << "0 -> o'ngga buril\n1 -> chapga buril\n2 -> burilish 180 gradus ";
cout << "K1: ";
cin >> k1;
cout << "K2: ";
cin >> k2;
switch (s) {
case 's': cout << "Shimolga "; break;
case 'j': cout << "Janubga "; break;
case 'q': cout << "Sharqga "; break;
case 'g': cout << "G'arbga "; break;
}
switch (k1){
case 0: cout << "o'ngga buril, "; break;
case 1: cout << "chapga buril, "; break;
case 2: cout << "burilish 180 gradus, "; break;
}
switch (k2){
case 0: cout << "o'ngga buril"; break;
case 1: cout << "chapga buril"; break;
case 2: cout << "burilish 180 gradus"; break;
}
}

Telegram | Viktorina bot | Portfolio | YouTube
👍31🔥1👨‍💻1
21👍1🐳1🏆1
Siz dasturlash sohasiga qiziqasiz lekin qayerdan oʻrganishni bilmayapsizmi? Unda sizga Garvard universitetining tekin dasturlash kurslariga taklif qilamiz.

P.s. Sizdan faqat ingliz tilini bilish va intizom bilan oʻrganish talab etiladi, xolos.

link: cs50.harvard.edu
👨‍💻2❤‍🔥11👍1🏆1
❤‍🔥1👍1🐳1
#javob_cpp_case_12

#include <bits/stdc++.h>

using namespace std;

int main(){
int n;
float pi = 3.14;
double s, l, d, r;
cout << "1 - radius \n2 - diametr\n3 - uzunlik\n4 - doiraning yuzasi" << endl;
cout << "Yuqoridagilardan birini tanlang: ";
cin >> n;
switch (n) {
case 1: {
cout << "R = ";
cin >> r;
d = 2 * r;
l = 2 * pi * r;
s = pi * r * r;
cout << "D = " << d << endl;
cout << "L = " << l << endl;
cout << "S = " << s << endl;
}
break;
case 2: {
cout << "D = ";
cin >> d;
r = d / 2;
l = 2 * pi * r;
s = pi * r * r;
cout << "R = " << r << endl;
cout << "L = " << l << endl;
cout << "S = " << s << endl;
}
break;
case 3: {
cout << "L = ";
cin >> l;
r = l / (2 * pi);
d = 2 * r;
s = pi * r * r;
cout << "R = " << r << endl;
cout << "D = " << d << endl;
cout << "S = " << s << endl;
}
break;
case 4: {
cout << "S = ";
cin >> n;
r = sqrt(s / pi);
d = 2 * r;
l = pi * 2 * r;
cout << "R = " << r << endl;
cout << "D = " << d << endl;
cout << "L = " << l << endl;
}
break;
default: cout << "Xato";
}
}

Telegram | Viktorina bot | Portfolio | YouTube
1👍1🏆1
❤‍🔥1👍1🔥1🤓1
🏆21👍1
#javob_cpp_case_13

#include <bits/stdc++.h>

using namespace std;

int main(){
int n;
float pi = 3.14;
double a, c, h, s;
cout << "1 - katet \n2 - gipotenuza \n3 - balandlik" << endl;
cout << "Yuqoridagilardan birini tanlang: ";
cin >> n;
switch (n) {
case 1: {
cout << "a = ";
cin >> a;
c = a * sqrt(2);
h = c / 2;
s = c * h / 2;
cout << "c = " << c << endl;
cout << "h = " << h << endl;
cout << "s = " << s << endl;
}
break;
case 2: {
cout << "c = ";
cin >> c;
a = c / sqrt(2);
h = c / 2;
s = c * h / 2;
cout << "a = " << a << endl;
cout << "h = " << h << endl;
cout << "s = " << s << endl;
}
break;
case 3: {
cout << "h = ";
cin >> h;
c = 2 * h;
a = c / sqrt(2);
s = c * h / 2;
cout << "a = " << a << endl;
cout << "c = " << c << endl;
cout << "s = " << s << endl;
}
break;
default: cout << "Xato";
}
}

Telegram | Viktorina bot | Portfolio | YouTube
1🔥1👏1👨‍💻1
1❤‍🔥1👍1🔥1
❤‍🔥1👍1🎉1🐳1
#javob_cpp_case_14

#include <bits/stdc++.h>

using namespace std;

int main(){
int n;
double a, r1, r2, s;
cout << "1 - tomoni \n2 - ichki chizilgan aylana radiusi \n3 - tashqi chizilgan aylana radiusi \n4 - yuzasi" << endl;
cout << "Yuqoridagilardan birini tanlang: ";
cin >> n;
switch (n) {
case 1: {
cout << "a = ";
cin >> a;
r1 = a * sqrt(3) / 6;
r2 = 2 * r1;
s = a * a * sqrt(3) / 4;
cout << "R1 = " << r1 << endl;
cout << "R2 = " << r2 << endl;
cout << "S = " << s << endl;
}
break;
case 2: {
cout << "R1 = ";
cin >> r1;
a = 6 * r1 / sqrt(3);
r2 = 2 * r1;
s = a * a * sqrt(3) / 4;
cout << "a = " << a << endl;
cout << "R2 = " << r2 << endl;
cout << "S = " << s << endl;
}
break;
case 3: {
cout << "R2 = ";
cin >> r2;
r1 = r2 / 2;
a = 6 * r1 / sqrt(3);
s = a * a * sqrt(3) / 4;
cout << "a = " << a << endl;
cout << "R1 = " << r1 << endl;
cout << "S = " << s << endl;
}
break;
case 4: {
cout << "S = ";
cin >> s;
a = sqrt((4 * s) / sqrt(3));
r1 = a * sqrt(3) / 6;
r2 = 2 * r1;
cout << "a = " << a << endl;
cout << "R1 = " << r1 << endl;
cout << "R2 = " << r2 << endl;
}
break;
default: cout << "Xato";
}
}

Telegram | Viktorina bot | Portfolio | YouTube
❤‍🔥1👍1👏1🏆1
2👍1🔥1🏆1
#javob_cpp_case_15

#include <bits/stdc++.h>

using namespace std;

int main(){
int n, k;
cout << "1 - g'isht \n2 - olma \n3 - chillak \n4 - qarg'a" << endl;
cout << "Yuqoridagilardan birini tanlang: ";
cin >> k;
cout << "Karta qiymatini kiriting: ";
cin >> n;
switch (n) {
case 6: cout << "olti "; break;
case 7: cout << "yetti "; break;
case 8: cout << "sakkiz "; break;
case 9: cout << "to'qqiz "; break;
case 10: cout << "o'n "; break;
case 11: cout << "valet "; break;
case 12: cout << "dama "; break;
case 13: cout << "qirol "; break;
case 14: cout << "tuz "; break;
}
switch (k) {
case 1: cout << "g'isht"; break;
case 2: cout << "olma"; break;
case 3: cout << "chillak"; break;
case 4: cout << "qarg'a"; break;
}
}

Telegram | Viktorina bot | Portfolio | YouTube
👍1🔥1🐳1
👍2🔥1🏆1