❓ Ikkita sonning oʻrta arifmetigini hisoblaydigan 4 xil funksiya tuzing.
‼️Dasturlaringizni komentda yozib qoldiring!
1. Qiymat qaytaradigan, parametrli
2. Qiymat qaytaradigan, parametrsiz
3. Qiymat qaytarmaydigan, parametrli
4. Qiymat qaytarmaydigan, parametrsiz
‼️Dasturlaringizni komentda yozib qoldiring!
‼️Extra Sessions | Midterm Preparation‼️
Today we have an online lesson
✅Be prepared, guys
↩️ We will review all the topics
@cpp_sirius👨💻
Today we have an online lesson
💻 C++ Programming
🗓️ Friday, October 10th
⏰ Time: 21:00
🧩 Hard problems
✅Be prepared, guys
↩️ We will review all the topics
@cpp_sirius👨💻
❤6
Computer Programming
‼️Extra Sessions | Midterm Preparation‼️ Today we have an online lesson 💻 C++ Programming 🗓️ Friday, October 10th ⏰ Time: 21:00 🧩 Hard problems ✅Be prepared, guys ↩️ We will review all the topics @cpp_sirius👨💻
‼️Bugun yecholmagan, qiynalgan barcha muammolarni tayyorlab turing!
Forwarded from Computer Programming 1
// integer 12
// 123 = 1*100+2*10+3
// 321 = 3*100+2*10+1
// int A, B, yuz, on, bir;
// cout<<"Uch xonali son: "; cin>>A;
// yuz = A/100;
// on = A%100/10;
// bir = A%10;
// B = bir*100+on*10+yuz;
// cout<<"Teskari son: "<<B;
// 123 = 1*100+2*10+3
// 321 = 3*100+2*10+1
// int A, B, yuz, on, bir;
// cout<<"Uch xonali son: "; cin>>A;
// yuz = A/100;
// on = A%100/10;
// bir = A%10;
// B = bir*100+on*10+yuz;
// cout<<"Teskari son: "<<B;
// bool 40
// ot: x -> 2; y->1
// ot: x-> 1; y->2
// int x1, y1, x2, y2;
// cout<<"Birinchi katak: "; cin>>x1>>y1;
// cout<<"Ikkinchi katak: "; cin>>x2>>y2;
// bool k = abs(x1-x2)==2 and abs(y1-y2)==1 or abs(x1-x2)==1 and abs(y1-y2)==2;
// cout<<boolalpha<<k;
// ot: x -> 2; y->1
// ot: x-> 1; y->2
// int x1, y1, x2, y2;
// cout<<"Birinchi katak: "; cin>>x1>>y1;
// cout<<"Ikkinchi katak: "; cin>>x2>>y2;
// bool k = abs(x1-x2)==2 and abs(y1-y2)==1 or abs(x1-x2)==1 and abs(y1-y2)==2;
// cout<<boolalpha<<k;