2 sonidan iborat tortburchak yaratish!
thequvonc
Posted on December 23, 2022
#include <iostream>
using namespace std;
int main() {
int a;
cin >> a;
cout << a << a << a << a << a << a << endl;
cout << a << " " << a << endl;
cout << a << " " << a << endl;
cout << a << a << a << a << a << a << endl;
return 0;
}
bu cod
imizda sa sal boshqacharoq yol tutamiz
*birinchidan int
son oqib olamiz keyin esa bizga cout <<
buyrugi kerak boladi
*6 qatordan a xarifini bolib, yozib olamiz.
*console
dagi javobimizda pastki qatorga alohida chiqarilishi uchun bizga << endl
buyrugi kerak boladi!
*va tortburchagimiz hosil bolganidan keyin biz return 0;
belgisini yozib olamiz!
doimgiday ooooooxiriga }
funksiyasini joylaymiz!
va nixoyat biz qanday qilib tortburchakni hosil qilishni organib oldik!
π πͺ π
π©
thequvonc
Posted on December 23, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.