PROGRAMMERS
رفتن به کانال در Telegram
Guruh: @Cpp_java_dasturlash Android: @prog_mz_android Quiz bot: @programmersQuiz_bot Portfolio: @ProgrammersPortfolio Reklama: https://t.me/programmers_reklama/2 Kanal uchun taklif: @Mr_Max_Telegram @ZohidAbdullayev
نمایش بیشتر967
مشترکین
اطلاعاتی وجود ندارد24 ساعت
-67 روز
-1930 روز
آرشیو پست ها
967
#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
967
#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
967
#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
967
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
967
#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
967
#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
967
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
967
#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
967
#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
اکنون در دسترس! پژوهش تلگرام ۲۰۲۵ — مهمترین بینشهای سال 
