Assalamu alaykum, guys‼️
Should we conduct a lesson tomorrow?
Yes 💯
No 🌚
Should we conduct a lesson tomorrow?
Topic:
— for, while loop statements
Yes 💯
No 🌚
💯20🌚5❤1
‼️Extra Sessions for Midterm Preparation‼️
Today we are going to organize an online lesson
✅Be ready
@cpp_sirius👨💻
Today we are going to organize an online lesson
💻 C++ Programming
⏰ Time: 21:00
Topic:
— for, while loop statements
✅Be ready
@cpp_sirius👨💻
❤3
Computer Programming
Photo
// Sikl - takrorlanish, aylanish
// for (<ifoda1>; <ifoda2>; <ifoda3>)
// operator;
// 1-10
// <ifoda1> - boshlang'ich qiymat;
// <ifoda2> - aylanish sharti;
// <ifoda3> - o'zgarish;
// operator - sikl tansi -> hisoblash
// for (<ifoda1>; <ifoda2>; <ifoda3>)
// operator;
// 1-10
// <ifoda1> - boshlang'ich qiymat;
// <ifoda2> - aylanish sharti;
// <ifoda3> - o'zgarish;
// operator - sikl tansi -> hisoblash
// Misol: 1dan 10gacha sonlarni chiqarish; 11da to'xtashi kerak
// bosh qiy = 1
// for (int i=1; i<=10; i++)
// cout<<i<<" ";
// bosh qiy = 1
// for (int i=1; i<=10; i++)
// cout<<i<<" ";
// b dan a gacha chiqarish - kamayuvchi sikl
// 100 sikl to'xtasin
// 1000 - 12
// int a, b; cin>>a>>b;
// for (int i=b; i>=a; i--) {
// if (i==100) {
// break; //siklni to'xtatadi
// }
// cout << i << " ";
// }
// 100 bo'sa, 100 ni chiqarmaslik kerak
// int a, b; cin>>a>>b;
// for (int i=b; i>=a; i--) {
// if (i==100) {
// continue; // keyin takrorlanishga o'tiladi - skip
// }
// cout << i << " ";
// }
// 100 sikl to'xtasin
// 1000 - 12
// int a, b; cin>>a>>b;
// for (int i=b; i>=a; i--) {
// if (i==100) {
// break; //siklni to'xtatadi
// }
// cout << i << " ";
// }
// 100 bo'sa, 100 ni chiqarmaslik kerak
// int a, b; cin>>a>>b;
// for (int i=b; i>=a; i--) {
// if (i==100) {
// continue; // keyin takrorlanishga o'tiladi - skip
// }
// cout << i << " ";
// }