Computer Programming
262 subscribers
58 photos
15 videos
55 files
16 links
- Programming Lessons
- Daily problems
- Guide books

Murojaat: @asadbek_tolqinjonov
Download Telegram
// Matritsaga qiymat kiritish
int f[2][3];
for (int i=0; i<2; i++) {
for (int j=0; j<3; j++) {
cin>>f[i][j];
}
}
// Matritsani chiqarish
for (int i=0; i<2; i++) {
for (int j=0; j<3; j++) {
cout<<f[i][j]<<" ";
}
cout<<endl;
}
1
Computer Programming
Photo
// mus 1.a
int n; cin>>n;
int a[n][n];
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
if (i == j) a[i][j] = 1;
else a[i][j] = 0;
}
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
cout << a[i][j] << " ";
}
cout << endl;
}
1
Computer Programming
Photo
int n; cin>>n;
int a[n][n];
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
if (i + j == n - 1) a[i][j] = i+1;
else a[i][j] = 0;
}
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
cout << a[i][j] << " ";
}
cout << endl;
}
Savollar?
2
Tushunyapmizmi?
// problem 17
int n; cout<<"Enter the size: "; cin>>n;
vector<int> a(n);
vector<int> b(n+1);
for (int i = 0; i < n; i++) cin>>a[i];
cout<<endl;
int x; cout<<"Value: "; cin>>x;
int k; cout<<"Index: "; cin>>k;
for (int i = 0; i <= n; i++) {
if (i<k) b[i]=a[i];
else if (i==k) b[i]=x;
else b[i] = a[i-1];
cout<<b[i]<<" ";
}
Live stream finished (1 hour)
Qaysi masalani ishlab berishimizni xohlaysiz?

Kommentda yozib qoldiring👇
Media is too big
VIEW IN TELEGRAM
🎥Lesson 8
💻C++ Programming
🧩Matrix and Vectors

#cpp

@cpp_sirius👨‍💻
3
main.cpp
4.1 KB
Codes
MatrixProblems.pdf
1.1 MB
100 Matrix problems

#cpp
Forwarded from Computer Programming (Asadbek Toʻlqinjonov)
Qaysi masalani ishlab berishimizni xohlaysiz?

Kommentda yozib qoldiring👇
Media is too big
VIEW IN TELEGRAM
🎥Vectors

Problem 15, 16, 17

#cpp
@cpp_sirius🧑🏻‍💻
1
‼️Lesson day‼️

Today we are going to conduct an extra lesson!

💻 Computer Programming
🗓️ Tuesday, 2nd December
🕓 Time: 21:00
🧩 *Pointers


@cpp_sirius👨‍💻
🔥6🎉1
Live stream scheduled for
Live stream started
I don't have stable internet! Wait a minut!