en
Feedback
C Language πŸ‘¨β€πŸ’»

C Language πŸ‘¨β€πŸ’»

Open in Telegram

This channel will serve you programs of C language. Admin : @jeNiShsoNi Useful channels : @c_channels @DeCODE_C @pyGuru

Show more
The country is not specifiedTechnologies & Applications1 456

πŸ“ˆ Analytical overview of Telegram channel C Language πŸ‘¨β€πŸ’»

Channel C Language πŸ‘¨β€πŸ’» (@c_codings) is an active participant. Currently, the community unites 62 093 subscribers, ranking 1 456 in the Technologies & Applications category.

πŸ“Š Audience metrics and dynamics

Since its creation on Π½Π΅Π²Ρ–Π΄ΠΎΠΌΠΎ, the project has demonstrated rapid growth, gathering an audience of 62 093 subscribers.

According to the latest data from 02 December, 2024, the channel demonstrates stable activity. Although there has been a change in the number of participants by 0 over the last 30 days and by 0 over the last 24 hours, overall reach remains high.

  • Verification status: Not verified
  • Engagement rate (ER): The average audience engagement rate is 0%. Within the first 24 hours after publication, content typically collects N/A% reactions from the total number of subscribers.
  • Post reach: On average, each post receives 0 views. Within the first day, a publication typically gains 0 views.
  • Reactions and interaction: The audience actively supports content: the average number of reactions per post is 0.

πŸ“ Description and content policy

The author describes the resource as a platform for expressing subjective opinions:
β€œThis channel will serve you programs of C language. Admin : @jeNiShsoNi Useful channels : @c_channels @DeCODE_C @pyGuru”

Thanks to the high frequency of updates (latest data received on 03 December, 2024), the channel maintains relevance and a high level of publication reach. Analytics show that the audience actively interacts with content, making it an important point of influence in the Technologies & Applications category.

62 093
Subscribers
No data24 hours
No data7 days
No data30 days
Posts Archive
64. Program to accept a number and print the factors of that number. #include<stdio.h> #include<conio.h> void main() { int n, i; clrscr(); printf("Enter a number : "); scanf("%d", &n); printf("Factors of %d are : ", n); for (i = 1; i <= n; ++i) { if (n % i == 0) printf("\n%d ", i); } getch(); } @C_Codings

63. Program to take two numbers and check whether they are amicable numbers or not. #include<stdio.h> #include<conio.h> //check function int check(int a, int b) { int s = 0, i; for (i = 1; i < a; i++) { if (a % i == 0) { s = s + i; } } if (s == b) { s = 0; for (i = 1; i < b; i++) { if (b % i == 0) { s = s + i; } } if (s == a) return 1; else return 0; } return 0; } void main() { int a, b; clrscr(); printf("Enter 1st number : "); scanf("%d", &a); printf("Enter 2nd number : "); scanf("%d", &b); if (check(a, b)) { printf("\n%d and %d are Amicable Numbers.", a, b); } else { printf("\n%d and %d are not Amicable Numbers.", a, b); } } @C_Codings

62. Program to take an alphabet from user and check whether it is a vowel or not. #include<stdio.h> #include<conio.h> void main() { char ch; clrscr(); printf("Enter an alphabet : "); scanf("%c", &ch); if (ch=='a' || ch=='A' || ch=='e' || ch=='E' || ch=='i' || ch=='I' || ch=='o' || ch=='O' || ch=='u' || ch=='U') printf("%c is a vowel.", ch); else printf("%c is not a vowel.", ch); getch(); } @C_Codings

61. Program to calculate Square of 'n' numbers. #include<stdio.h> #include<conio.h> void main() { int n, r, i, sqr=0; clrscr(); printf("\nEnter the range : "); scanf("%d", &r); for (i = 1; i <= r; i++) { n = i; sqr = n * n; printf("\nSquare of %d is : %d .", n, sqr); } getch(); } @C_Codings

60. Average of numbers. #include<stdio.h> #include<conio.h> void main() { int n, i; float sum=0, x, avg; clrscr(); printf("Enter total Numbers : "); scanf("%d", &n); for (i = 1; i <= n; i++) { printf("\nNumber %d : ", i ); scanf("%f", &x); sum += x; } avg = sum / n; printf("\nThe Average is : %0.2f", avg); getch(); } @C_Codings

59. Program to accept a number and add the digits of that number using recursion. #include<stdio.h> #include<conio.h> int add_digits(int); void main() { int n, result; clrscr(); printf("Enter a number : "); scanf("%d", &n); result = add_digits(n); printf("Sum : %d", result); getch(); } int add_digits(int n) { static int sum = 0; if (n == 0) { return 0; } sum = n % 10 + add_digits(n / 10); return sum; } @C_Codings

58. Program to accept a number and add the digits of that number. #include<stdio.h> #include<conio.h> void main() { int n, sum = 0, remainder; clrscr(); printf("Enter the number : "); scanf("%d", &n); while (n != 0) { remainder = n % 10; sum = sum + remainder; n = n / 10; } printf("Sum of digits of entered number : %d", sum); getch(); } @C_Codings

57. Add 'n' numbers using array. #include<stdio.h> #include<conio.h> void main() { int n, sum = 0, i, array[100]; clrscr(); printf("Enter total numbers you want to add : "); scanf("%d", &n); for (i = 1; i <= n; i++) { printf("Enter number %d : ", i); scanf("%d", &array[i]); sum = sum + array[i]; } printf("Sum : %d\n", sum); getch(); } @C_Codings

56. Add 'n' numbers. #include<stdio.h> #include<conio.h> void main() { int n, sum=0, i, value; clrscr(); printf("Enter total numbers you want to add : "); scanf("%d", &n); for (i=1; i<=n; i++) { printf("Enter number %d : ", i); scanf("%d", &value); sum = sum + value; } printf("Sum of entered numbers : %d", sum); getch(); } @C_Codings

55. Program to accept a number and print Fibonacci sequence. #include<stdio.h> #include<conio.h> void main() { int pre=1, cur=1, temp, i, n; //pre means previous number //cur means current number clrscr(); printf("Enter number : "); scanf("%d", &n); printf("%d\t%d", pre, cur); for(i=3; i<=n; i++) { temp = cur; cur = pre + cur; pre = temp; printf("\t%d", cur); } getch(); } @C_Codings

54. Program to print 'n' prime numbers. #include<stdio.h> #include<conio.h> #include<process.h> void main() { int i, j, flag=1, n; clrscr(); printf("Enter number : "); scanf("%d", &n); for(i=2; i<=n; i++) { flag=1; for(j=2; j<=i/2; j++) { if(i%j==0) { flag=0; break; } } if(flag==1) printf("%d\n", i); } getch(); } @C_Codings

53. Program to accept number and print if it is prime number or not. #include<stdio.h> #include<conio.h> void main() { int i, n; clrscr(); printf("Enter number : "); scanf("%d", &n); for(i=2; i<=n/2; i++) { if(n%i==0) { printf("Number is not Prime"); getch(); break; } } printf("Number is Prime"); getch(); } @C_Codings

52. Program to accept number and print it's factorial. #include<stdio.h> #include<conio.h> void main() { int i, fact=1, n; clrscr(); printf("Enter number : "); scanf("%d", &n); for(i=1; i<=n; i++) { fact = fact*i; } printf("Factorial is: %d", fact); getch(); } @C_Codings

51. Triangle with only border #include<stdio.h> #include<conio.h> * * * * * * * * * * * * * * * * * void drawTriangle(char border, char filler, int length) { int start = 2; int base = 4; int i, sp, j, b; for (i = start; i <= length; i++) { for (sp = 0; sp <= length - i; sp++) { printf(" "); } if (i > start) { printf("%c ", border); } if (i > start) { for (b = base; b <= i; b++) { printf("%c ", filler); } } printf("%c \n", border); } for (j = base; j < length + base; j++) { printf("%c ", border); } printf("\n"); } void main() { int length = 6; clrscr(); drawTriangle('*', ' ', length); getch(); } @C_Codings

50. Square kite pattern 1 2 2 3 3 4 4 3 3 2 2 1 #include<stdio.h> #include<conio.h> void main() { int i, j, k; clrscr(); for (i = 1; i <= 4; i++) { for (j = 4; j >= (i - 1) * 2 - 1; j--) printf(" "); printf("%d", i); for (j = 2; j <= (i - 1) * 4; j++) printf(" "); if (i > 1) printf("%d", i); printf("\n"); } for (i = 3; i >= 1; i--) { for (j = 4; j >= (i - 1) * 2 - 1; j--) printf(" "); printf("%d", i); for (j = 2; j <= (i - 1) * 4; j++) printf(" "); if (i > 1) printf("%d", i); printf("\n"); } getch(); } @C_Codings

49. Rhombus Pattern 1 1 2 2 3 3 4 4 5 5 4 4 3 3 2 2 1 1 #include<stdio.h> #include<conio.h> void main() { int num, r, c, sp, n; clrscr(); printf("Enter the number : "); scanf("%d", &num); for (r = 1; r <= num; r++) { for (sp = num - r; sp >= 1; sp--) printf(" "); printf("%d", r); for (sp = r * 2; sp > 1; sp--) printf(" "); printf("%d", r); printf("\n"); } for (r = 1, n = num - 1; r < num; r++, n--) { for (sp = r; sp >= 1; sp--) printf(" "); printf("%d", n); for (sp = n * 2; sp > 1; sp--) printf(" "); printf("%d", n); printf("\n"); } getch(); } @C_Codings

48. Reverse star pyramid * * * * * * * * * * * * * * * * * * * * * * * * * #include<stdio.h> #include<conio.h> void main() { int i, j, k; clrscr(); for (i = 5; i >= 1; i--) { for (j = 5; j > i; j--) { printf(" "); } for (k = 1; k < (i * 2); k++) { printf("* "); } printf("\n"); } getch(); } @C_Codings

47. Nested Star-Hash Pyramid #####*##### ####*#*#### ###*###*### ##*#####*## #*#######*# *#########* #include<stdio.h> #include<conio.h> void main() { int n = 5, r, c; clrscr(); for (r = 1; r <= 6; r++, n--) { // first pyramid for (c = 1; c <= n; c++) { printf(" #"); } // second pyramid for (c = 1; c <= r; c++) { if (c == 1) { printf(" *"); } else { printf(" #"); } } // third pyramid for (c = r; c > 1; c--) { if (c == 2) { printf(" *"); } else { printf(" #"); } } // fourth pyramid for (c = n; c >= 1; c--) { printf(" #"); } printf("\n"); } getch(); }

46. Hourglass Pattern * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * #include<stdio.h> #include<conio.h> void main() { int num, n, r, c, sp; clrscr(); printf("Enter number of rows: "); scanf("%d", &num); printf("\n"); n = num; for (r = 1; r <= num; r++) { for (sp = 1; sp <= r; sp++) printf(" "); for (c = 1; c <= n; c++) printf("*"); for (c = num - r; c >= 1; c--) printf("*"); n--; printf("\n"); } for (r = 2; r <= num; r++) { for (sp = num - r + 1; sp >= 1; sp--) printf(" "); for (c = 1; c <= r; c++) printf("*"); for (c = r - 1; c >= 1; c--) printf("*"); printf("\n"); } getch(); } @C_Codings

45. Hollow Square * * * * * * * * * * * * * * * * #include<stdio.h> #include<conio.h> void main() { int i, j, n; clrscr(); printf("Enter value of n : "); scanf("%d", &n); printf("\n"); for (i = 1; i <= n; i++) { for (j = 1; j <= n; j++) { if (i != 1 && i != n && j != 1 && j != n) { printf(" "); } else { printf("*"); } } printf("\n"); } getch(); } @C_Codings