C Programming Codes
C Programming Codes || Quizzes || DSA Learn along with the community Any queries admin - @Pradeep_saii
Ko'proq ko'rsatish📈 Telegram kanali C Programming Codes analitikasi
C Programming Codes (@c_programming_codes) Ingliz til segmentidagi kanali faol ishtirokchi. Hozirda hamjamiyat 13 420 obunachidan iborat bo'lib, Texnologiyalar & Aralashmalar toifasida 9 537-o'rinni va Hindiston mintaqasida 32 062-o'rinni egallagan.
📊 Auditoriya ko‘rsatkichlari va dinamika
невідомо sanasidan buyon loyiha tez o‘sib, 13 420 obunachiga ega bo‘ldi.
12 Iyun, 2026 dagi oxirgi ma’lumotlarga ko‘ra kanal barqaror faollikka ega. Oxirgi 30 kunda obunachilar soni -240 ga, so‘nggi 24 soatda esa -9 ga o‘zgardi va umumiy qamrov yuqori darajada qolmoqda.
- Tasdiqlash holati: Tasdiqlanmagan
- Jalb etish (ER): Auditoriya o‘rtacha 9.78% darajada jalb etiladi. Nashrdan keyingi dastlabki 24 soatda kontent odatda umumiy obunachilar sonining N/A% ini tashkil etuvchi reaksiyalarni to‘playdi.
- Post qamrovi: Har bir post o‘rtacha 0 marta ko‘riladi; birinchi sutkada odatda 0 ta ko‘rish yig‘iladi.
- Reaksiyalar va o‘zaro ta’sir: Auditoriya faol: har bir postga o‘rtacha 0 ta reaksiya keladi.
- Tematik yo‘nalishlar: Kontent input, string, scanf("%d, array, element kabi asosiy mavzularga jamlangan.
📝 Tavsif va kontent siyosati
Muallif resursni shaxsiy fikrni ifoda etish maydoni sifatida ta’riflaydi:
“C Programming Codes || Quizzes || DSA
Learn along with the community
Any queries
admin - @Pradeep_saii”
Yuqori yangilanish chastotasi (oxirgi ma’lumot 13 Iyun, 2026 da olingan) sababli kanal doimo dolzarb va katta qamrovli bo‘lib qoladi. Analitika auditoriya kontent bilan faol hamkorlik qilishini, uni Texnologiyalar & Aralashmalar toifasidagi muhim ta’sir nuqtasiga aylantirishini ko‘rsatadi.
#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
if (i == 0 || i == n - 1 || j == 0 || j == n - 1) {
printf("*");
} else {
printf(" ");
}
}
printf("\n");
}
return 0;
}#include <stdio.h>
int main() {
int rows = 5, cols = 5;
for (int i = 1; i <= rows; i++) {
for (int j = 1; j <= cols; j++) {
if (i == 3 && j == 2) {
continue;
}
if (i == 4 && j == 4) {
break;
}
printf("%d * %d = %d\t", i, j, i * j);
}
printf("\n");
}
return 0;
}#include <stdio.h>
int main() {
int num, prevNum = -1;
while (1) {
printf("Enter a number: ");
scanf("%d", &num);
if (num == prevNum) {
printf("Duplicate detected: %d\n", num);
break;
}
prevNum = num;
}
return 0;
}#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
do {
printf("%d ", n);
n--;
} while (n >= 1);
printf("\n");
return 0;
}#include <stdio.h>
int main() {
char alphabet = 'A';
while (alphabet <= 'Z') {
printf("%c ", alphabet);
alphabet++;
}
printf("\n");
return 0;
}#include <stdio.h>
int main() {
int N, i = 1;
printf("Enter the value of N: ");
scanf("%d", &N);
printf("Even numbers: ");
while (i <= N) {
if (i % 2 == 0) {
printf("%d ", i);
}
i++;
}
printf("\n");
i = 1;
printf("Odd numbers: ");
while (i <= N) {
if (i % 2 != 0) {
printf("%d ", i);
}
i++;
}
printf("\n");
return 0;
}#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main() {
int number, guess, attempts = 0;
srand(time(0));
number = rand() % 100 + 1;
do {
printf("Guess a number between 1 and 100: ");
scanf("%d", &guess);
attempts++;
if (guess > number) {
printf("Too high!\n");
} else if (guess < number) {
printf("Too low!\n");
} else {
printf("Correct! You guessed in %d attempts.\n", attempts);
}
} while (guess != number);
return 0;
}#include <stdio.h>
int main() {
int rows, i, j, space;
rows = 5;
for (i = 1; i <= rows; i++) {
for (space = i; space < rows; space++)
printf(" ");
for (j = 1; j <= (2 * i - 1); j++)
printf("*");
printf("\n");
}
for (i = rows - 1; i >= 1; i--) {
for (space = i; space < rows; space++)
printf(" ");
for (j = 1; j <= (2 * i - 1); j++)
printf("*");
printf("\n");
}
return 0;
}#include <stdio.h>
int main() {
int rows, i, j, space;
rows = 5;
for (i = rows; i >= 1; --i) {
for (space = 0; space < rows - i; ++space)
printf(" ");
for (j = i; j <= 2 * i - 1; ++j)
printf("* ");
for (j = 0; j < i - 1; ++j)
printf("* ");
printf("\n");
}
return 0;
}#include <stdio.h>
int main() {
int rows, i, j;
scanf("%d", &rows);
for (i = 1; i <= rows; i++) {
for (j = 1; j <= i; j++) {
printf("*");
}
printf("\n");
}
return 0;
}#include <stdio.h>
int main() {
int rows, i, j, space, number = 1;
printf("Enter number of rows: ");
scanf("%d", &rows);
for (i = 0; i < rows; i++) {
for (space = 1; space <= rows - i; space++)
printf(" ");
for (j = 0; j <= i; j++) {
if (j == 0 || i == 0)
number = 1;
else
number = number * (i - j + 1) / j;
printf("%4d", number);
}
printf("\n");
}
return 0;
}#include <stdio.h>
int main() {
int rows, num = 1;
scanf("%d", &rows);
for (int i = 1; i <= rows; i++) {
for (int j = 1; j <= i; j++) {
printf("%d ", num);
num++;
}
printf("\n");
}
return 0;
}#include <stdio.h>
int main() {
int n, i;
printf("Enter a number: ");
scanf("%d", &n);
for (i = 1; i <= 10; i++) {
printf("%d * %d = %d\n", n, i, n * i);
}
return 0;
}#include <stdio.h>
int main() {
int num, count = 0;
printf("Enter an integer: ");
scanf("%d", &num);
if (num == 0) {
count = 1;
} else {
do {
num /= 10;
count++;
} while (num != 0);
}
printf("Number of digits: %d\n", count);
return 0;
}#include <stdio.h>
int main() {
int num, sum = 0, digit;
scanf("%d", &num);
while (num > 0) {
digit = num % 10;
sum += digit;
num /= 10;
}
printf("%d", sum);
return 0;
}#include <stdio.h>
int main() {
int n, i = 1;
printf("Enter a number: ");
scanf("%d", &n);
do {
printf("%d ", i);
i++;
} while (i <= n);
printf("\n");
return 0;
}#include <stdio.h>
int main() {
int n, i = 1;
printf("Enter a number: ");
scanf("%d", &n);
while (i <= n) {
printf("%d ", i);
i++;
}
printf("\n");
return 0;
}#include <stdio.h>
int main() {
int n, i;
printf("Enter a number: ");
scanf("%d", &n);
for (i = 1; i <= n; i++) {
printf("%d ", i);
}
printf("\n");
return 0;
}
#include <stdio.h>
int main() {
int size = 5;
for (int i = 0; i < size; i++) {
for (int j = 0; j < size; j++) {
printf("* ");
}
printf("n");
}
return 0;
}
2. **Inverted Right-Angled Triangle:**
#include <stdio.h>
int main() {
int rows = 5;
for (int i = rows; i >= 1; i--) {
for (int j = 1; j <= i; j++) {
printf("* ");
}
printf("n");
}
return 0;
}
Practice Tips:
- Start with simple patterns and gradually increase the complexity.
- Break down the pattern into rows and columns.
- Identify the relationship between the row and column numbers and the characters to be printed.
- Draw the pattern on paper first to visualize the output.
Practice Problems:
- Print a hollow square pattern.
- Print a diamond pattern.
- Print a pyramid pattern.
- Print patterns with numbers or characters instead of ''.
🎉 Congratulations! You've taken the first steps into the world of loops and patterns in C. Keep practicing, and you'll be amazed at what you can create! Remember practice makes perfect. 👨💻
Endi mavjud! Telegram Tadqiqoti 2025 — yilning asosiy insaytlari 
