|
2 | 2 | ## This repo contains basics programs in c programming language. |
3 | 3 | | Program No.| Question | |
4 | 4 | | ------- | ------ | |
5 | | -| Program-01 | Program to print pattern | |
6 | | -| Program-02 | Program to check whether the given number is prime or not | |
7 | | -| Program-03 | Program to find largest of three number using simple if condition | |
8 | | -| Program-04 | Program to find largest of three number using if-else condition | |
9 | | -| Program-05 | Program to find largest of three number using nested if condition | |
10 | | -| Program-06 | Program to find largest of three number using ternary operator | |
11 | | -| Program-07 | Program to check whether the given year is leap or not | |
12 | | -| Program-08 | Program to convert number into year, months and days | |
13 | | -| Program-09 | Program to check two number are equal without logical operator | |
14 | | -| Program-10 | Program to find square and half of given number without using built-in function and arithmetic operator| |
15 | | -| Program-11 | Program on arithmetic operators | |
16 | | -| Program-12 | Program on relational operators | |
17 | | -| Program-13 | Program on bit-wise operator. | |
18 | | -| Program-14 | Program on increment and decrement operator. | |
19 | | -| Program-15 | Program to find sum of digits between given range which are divisible by 3 | |
20 | | -| Program-16 | Program to check whether the given number is neon or not | |
21 | | -| Program-17 | Program to check whether the given number is prefect or not | |
22 | | -| Program-18 | Program to check given number is Armstrong or not | |
23 | | -| Program-19 | Program to find power of a given number | |
24 | | -| Program-20 | Program to convert datatype explicitly | |
25 | | -| Program-21 | Program to check whether the given number is prime or not | |
26 | | -| Program-22 | Program to find GCD and LCM of given two number | |
27 | | -| Program-23 | Program to find number of digits in a given number | |
28 | | -| Program-24 | Program to print the pattern | |
29 | | -| Program-25 | Program to print the pattern | |
30 | | -| Program-26 | Program to print the pattern | |
31 | | -| Program-27 | Program to print the pattern | |
32 | | -| Program-28 | Program to print the pattern | |
33 | | -| Program-29 | Program to print the pattern | |
34 | | -| Program-30 | Program to print the pattern | |
35 | | -| Program-31 | Program to take the details of student and print the details of students using array and to add details of new students into the existing array | |
36 | | -| Program-32 | Program to take the details of student and print the details | |
37 | | -| Program-33 | Program on Arithematic operation using pointers | |
38 | | -| Program-34 | Program to determine whether the matrix is a triangular matrix. First, you will be given N, which is the size of the matrix. Then you will be given N rows of integers, where each row consists of N integers separated by spaces. If the input matrix is triangular, then print yes. Otherwise, print no. | |
39 | | -| Program-35 | Program where you are given a sequence of non-negative integers terminated by -1. You have to output 1 if there are atleast 2 distinct elements in the sequence and 0 if the sequence consists of only 1 integer. Note that -1 is not part of the sequence. The sequence is not necessarily sorted. | |
40 | | -| Program-36 | Program to output the number of distinct elements in the sorted sequence | |
41 | | -| Program-37 | Program to find the fibonacci sequnce using recursion | |
42 | | -| Program-38 | Program to find the factorial of a number using recursion | |
43 | | -| Program-39 | Program to find the GCD of a number using recursion | |
44 | | -| Program-40 | Program to find the ackerman of given two numbers| |
45 | | -| Program-41 | Program to find sum of two numbers without using any operator | |
46 | | -| Program-42 | Program to print Floyd’s triangle Without using a temporary variable and with only one loop | |
47 | | -| Program-43 | Program for printing the hollow triangle pattern | |
48 | | -| Program-44 | Program for implementation of the approach | |
49 | | -| Program-45 | Program to illustrate the above given pattern of numbers. | |
50 | | -| Program-46 | Program to convert binary number to decimal | |
51 | | -| Program-47 | Program to find the maximum and minimum element in an array| |
52 | | -| Program-48 | Program to check if a number is even or odd | |
53 | | -| Program-49 | Program to find the sum of the digits of the given number | |
54 | | -| Program-50 | Program to check whether a given number is a palindrome or not | |
55 | | -| Program-51 | Program to print duplicates in an array | |
56 | | -| Program-52 | Program to find whether the given element is present in the array or not | |
57 | | -| Program-53 | Program to find the position of an element in an array | |
58 | | -| Program-54 | Program to check whether two strings are anagrams or not | |
59 | | -| Program-55 | Program to print print a number in binary | |
60 | | -| Program-56 | Program to calculate the number of vowels and consonants in a string | |
61 | | -| Program-57 | Program to calculate the grade | |
62 | | -| Program-58 | Program to find the sum of elements between indexes | |
63 | | -| Program-59 | Program to Search Students details in a list | |
64 | | -| Program-60 | Program to print kaprekar number in a given range | |
65 | | -| Program-61 | Program to find the all the prime numbers between the given range. | |
66 | | -| Program-62 | Program to calculate the average of 5 numbers. | |
67 | | -| Program-63 | Program to print Pascal's Triangle. | |
68 | | -| Program-64 | Program to check Armstrong number. | |
69 | | -| Program-65 | Program to Find Transpose of a Matrix | |
70 | | -| Program-66 | Program to find fibonacci series upto n values in C language. | |
71 | | -| Program-67 | Program to calulate all the prime between the range of numbers includes the numbers which is provided. | |
72 | | -| Program-68 | Program to accept 0s and 1s as input and print if it consists 3 consecutive 0s | |
73 | | -| Program-69 | Program to find strong number | |
74 | | -| Program-70 | Program to make a simple calculator | |
75 | | -| Program-71 | Program to implement stack using array & linked list | |
76 | | -| Program-72 | Program to implement stack using linked list | |
77 | | -| Program-73 | Program to implement stack using array | |
| 5 | +| [Program-01](https://github.com/swaaz/basicprograms/tree/master/C/program-1) | Program to print pattern | |
| 6 | +| [Program-02](https://github.com/swaaz/basicprograms/tree/master/C/program-02) | Program to check whether the given number is prime or not | |
| 7 | +| [Program-03](https://github.com/swaaz/basicprograms/tree/master/C/program-13) | Program to find largest of three number using simple if condition | |
| 8 | +| [Program-04](https://github.com/swaaz/basicprograms/tree/master/C/program-04) | Program to find largest of three number using if-else condition | |
| 9 | +| [Program-05](https://github.com/swaaz/basicprograms/tree/master/C/program-05) | Program to find largest of three number using nested if condition | |
| 10 | +| [Program-06](https://github.com/swaaz/basicprograms/tree/master/C/program-06) | Program to find largest of three number using ternary operator | |
| 11 | +| [Program-07](https://github.com/swaaz/basicprograms/tree/master/C/program-07) | Program to check whether the given year is leap or not | |
| 12 | +| [Program-08](https://github.com/swaaz/basicprograms/tree/master/C/program-08) | Program to convert number into year, months and days | |
| 13 | +| [Program-09](https://github.com/swaaz/basicprograms/tree/master/C/program-09) | Program to check two number are equal without logical operator | |
| 14 | +| [Program-10](https://github.com/swaaz/basicprograms/tree/master/C/program-10) | Program to find square and half of given number without using built-in function and arithmetic operator| |
| 15 | +| [Program-11](https://github.com/swaaz/basicprograms/tree/master/C/program-11) | Program on arithmetic operators | |
| 16 | +| [Program-12](https://github.com/swaaz/basicprograms/tree/master/C/program-12) | Program on relational operators | |
| 17 | +| [Program-13](https://github.com/swaaz/basicprograms/tree/master/C/program-13) | Program on bit-wise operator. | |
| 18 | +| [Program-14](https://github.com/swaaz/basicprograms/tree/master/C/program-14) | Program on increment and decrement operator. | |
| 19 | +| [Program-15](https://github.com/swaaz/basicprograms/tree/master/C/program-15) | Program to find sum of digits between given range which are divisible by 3 | |
| 20 | +| [Program-16](https://github.com/swaaz/basicprograms/tree/master/C/program-16) | Program to check whether the given number is neon or not | |
| 21 | +| [Program-17](https://github.com/swaaz/basicprograms/tree/master/C/program-17) | Program to check whether the given number is prefect or not | |
| 22 | +| [Program-18](https://github.com/swaaz/basicprograms/tree/master/C/program-18) | Program to check given number is Armstrong or not | |
| 23 | +| [Program-19](https://github.com/swaaz/basicprograms/tree/master/C/program-19) | Program to find power of a given number | |
| 24 | +| [Program-20](https://github.com/swaaz/basicprograms/tree/master/C/program-20) Program-20 | Program to convert datatype explicitly | |
| 25 | +| [Program-21](https://github.com/swaaz/basicprograms/tree/master/C/program-21) | Program to check whether the given number is prime or not | |
| 26 | +| [Program-22](https://github.com/swaaz/basicprograms/tree/master/C/program-22) | Program to find GCD and LCM of given two number | |
| 27 | +| [Program-23](https://github.com/swaaz/basicprograms/tree/master/C/program-23) | Program to find number of digits in a given number | |
| 28 | +| [Program-24](https://github.com/swaaz/basicprograms/tree/master/C/program-24) | Program to print the pattern | |
| 29 | +| [Program-25](https://github.com/swaaz/basicprograms/tree/master/C/program-25) | Program to print the pattern | |
| 30 | +| [Program-26](https://github.com/swaaz/basicprograms/tree/master/C/program-26) | Program to print the pattern | |
| 31 | +| [Program-27](https://github.com/swaaz/basicprograms/tree/master/C/program-27) | Program to print the pattern | |
| 32 | +| [Program-28](https://github.com/swaaz/basicprograms/tree/master/C/program-28) | Program to print the pattern | |
| 33 | +| [Program-29](https://github.com/swaaz/basicprograms/tree/master/C/program-29) | Program to print the pattern | |
| 34 | +| [Program-30](https://github.com/swaaz/basicprograms/tree/master/C/program-30) | Program to print the pattern | |
| 35 | +| [Program-31](https://github.com/swaaz/basicprograms/tree/master/C/program-31) | Program to take the details of student and print the details of students using array and to add details of new students into the existing array | |
| 36 | +| [Program-32](https://github.com/swaaz/basicprograms/tree/master/C/program-32) | Program to take the details of student and print the details | |
| 37 | +| [Program-33](https://github.com/swaaz/basicprograms/tree/master/C/program-33) | Program on Arithematic operation using pointers | |
| 38 | +| [Program-34](https://github.com/swaaz/basicprograms/tree/master/C/program-34) | Program to determine whether the matrix is a triangular matrix. First, you will be given N, which is the size of the matrix. Then you will be given N rows of integers, where each row consists of N integers separated by spaces. If the input matrix is triangular, then print yes. Otherwise, print no. | |
| 39 | +| [Program-35](https://github.com/swaaz/basicprograms/tree/master/C/program-35) | Program where you are given a sequence of non-negative integers terminated by -1. You have to output 1 if there are atleast 2 distinct elements in the sequence and 0 if the sequence consists of only 1 integer. Note that -1 is not part of the sequence. The sequence is not necessarily sorted. | |
| 40 | +| [Program-36](https://github.com/swaaz/basicprograms/tree/master/C/program-36) | Program to output the number of distinct elements in the sorted sequence | |
| 41 | +| [Program-37](https://github.com/swaaz/basicprograms/tree/master/C/program-37) | Program to find the fibonacci sequnce using recursion | |
| 42 | +| [Program-38](https://github.com/swaaz/basicprograms/tree/master/C/program-38) | Program to find the factorial of a number using recursion | |
| 43 | +| [Program-39](https://github.com/swaaz/basicprograms/tree/master/C/program-39) | Program to find the GCD of a number using recursion | |
| 44 | +| [Program-40](https://github.com/swaaz/basicprograms/tree/master/C/program-40) | Program to find the ackerman of given two numbers| |
| 45 | +| [Program-41](https://github.com/swaaz/basicprograms/tree/master/C/program-41) | Program to find sum of two numbers without using any operator | |
| 46 | +| [Program-42](https://github.com/swaaz/basicprograms/tree/master/C/program-42) | Program to print Floyd’s triangle Without using a temporary variable and with only one loop | |
| 47 | +| [Program-43](https://github.com/swaaz/basicprograms/tree/master/C/program-43) | Program for printing the hollow triangle pattern | |
| 48 | +| [Program-44](https://github.com/swaaz/basicprograms/tree/master/C/program-44) | Program for implementation of the approach | |
| 49 | +| [Program-45](https://github.com/swaaz/basicprograms/tree/master/C/program-45) | Program to illustrate the above given pattern of numbers. | |
| 50 | +| [Program-46](https://github.com/swaaz/basicprograms/tree/master/C/program-46) | Program to convert binary number to decimal | |
| 51 | +| [Program-47](https://github.com/swaaz/basicprograms/tree/master/C/program-47) | Program to find the maximum and minimum element in an array| |
| 52 | +| [Program-48](https://github.com/swaaz/basicprograms/tree/master/C/program-48) | Program to check if a number is even or odd | |
| 53 | +| [Program-49](https://github.com/swaaz/basicprograms/tree/master/C/program-49) | Program to find the sum of the digits of the given number | |
| 54 | +| [Program-50](https://github.com/swaaz/basicprograms/tree/master/C/program-50) | Program to check whether a given number is a palindrome or not | |
| 55 | +| [Program-51](https://github.com/swaaz/basicprograms/tree/master/C/program-51) | Program to print duplicates in an array | |
| 56 | +| [Program-52](https://github.com/swaaz/basicprograms/tree/master/C/program-52) | Program to find whether the given element is present in the array or not | |
| 57 | +| [Program-53](https://github.com/swaaz/basicprograms/tree/master/C/program-53) | Program to find the position of an element in an array | |
| 58 | +| [Program-54](https://github.com/swaaz/basicprograms/tree/master/C/program-54) | Program to check whether two strings are anagrams or not | |
| 59 | +| [Program-55](https://github.com/swaaz/basicprograms/tree/master/C/program-55) | Program to print print a number in binary | |
| 60 | +| [Program-56](https://github.com/swaaz/basicprograms/tree/master/C/program-56) | Program to calculate the number of vowels and consonants in a string | |
| 61 | +| [Program-57](https://github.com/swaaz/basicprograms/tree/master/C/program-57) | Program to calculate the grade | |
| 62 | +| [Program-58](https://github.com/swaaz/basicprograms/tree/master/C/program-58) | Program to find the sum of elements between indexes | |
| 63 | +| [Program-59](https://github.com/swaaz/basicprograms/tree/master/C/program-59) | Program to Search Students details in a list | |
| 64 | +| [Program-60](https://github.com/swaaz/basicprograms/tree/master/C/program-60) | Program to print kaprekar number in a given range | |
| 65 | +| [Program-61](https://github.com/swaaz/basicprograms/tree/master/C/program-61) | Program to find the all the prime numbers between the given range. | |
| 66 | +| [Program-62](https://github.com/swaaz/basicprograms/tree/master/C/program-62) | Program to calculate the average of 5 numbers. | |
| 67 | +| [Program-63](https://github.com/swaaz/basicprograms/tree/master/C/program-63) | Program to print Pascal's Triangle. | |
| 68 | +| [Program-64](https://github.com/swaaz/basicprograms/tree/master/C/program-64) | Program to check Armstrong number. | |
| 69 | +| [Program-65](https://github.com/swaaz/basicprograms/tree/master/C/program-65) | Program to Find Transpose of a Matrix | |
| 70 | +| [Program-66](https://github.com/swaaz/basicprograms/tree/master/C/program-66) | Program to find fibonacci series upto n values in C language. | |
| 71 | +| [Program-67](https://github.com/swaaz/basicprograms/tree/master/C/program-67) | Program to calulate all the prime between the range of numbers includes the numbers which is provided. | |
| 72 | +| [Program-68](https://github.com/swaaz/basicprograms/tree/master/C/program-68) | Program to accept 0s and 1s as input and print if it consists 3 consecutive 0s | |
| 73 | +| [Program-69](https://github.com/swaaz/basicprograms/tree/master/C/program-69) | Program to find strong number | |
| 74 | +| [Program-70](https://github.com/swaaz/basicprograms/tree/master/C/program-70) | Program to make a simple calculator | |
| 75 | +| [Program-71](https://github.com/swaaz/basicprograms/tree/master/C/program-71) | Program to implement stack using array & linked list | |
| 76 | +| [Program-72](https://github.com/swaaz/basicprograms/tree/master/C/program-72) | Program to implement stack using linked list | |
| 77 | +| [Program-73](https://github.com/swaaz/basicprograms/tree/master/C/program-73) | Program to implement stack using array | |
78 | 78 |
|
79 | 79 |
|
0 commit comments