Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 73 additions & 73 deletions C/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,78 +2,78 @@
## This repo contains basics programs in c programming language.
| Program No.| Question |
| ------- | ------ |
| Program-01 | Program to print pattern |
| Program-02 | Program to check whether the given number is prime or not |
| Program-03 | Program to find largest of three number using simple if condition |
| Program-04 | Program to find largest of three number using if-else condition |
| Program-05 | Program to find largest of three number using nested if condition |
| Program-06 | Program to find largest of three number using ternary operator |
| Program-07 | Program to check whether the given year is leap or not |
| Program-08 | Program to convert number into year, months and days |
| Program-09 | Program to check two number are equal without logical operator |
| Program-10 | Program to find square and half of given number without using built-in function and arithmetic operator|
| Program-11 | Program on arithmetic operators |
| Program-12 | Program on relational operators |
| Program-13 | Program on bit-wise operator. |
| Program-14 | Program on increment and decrement operator. |
| Program-15 | Program to find sum of digits between given range which are divisible by 3 |
| Program-16 | Program to check whether the given number is neon or not |
| Program-17 | Program to check whether the given number is prefect or not |
| Program-18 | Program to check given number is Armstrong or not |
| Program-19 | Program to find power of a given number |
| Program-20 | Program to convert datatype explicitly |
| Program-21 | Program to check whether the given number is prime or not |
| Program-22 | Program to find GCD and LCM of given two number |
| Program-23 | Program to find number of digits in a given number |
| Program-24 | Program to print the pattern |
| Program-25 | Program to print the pattern |
| Program-26 | Program to print the pattern |
| Program-27 | Program to print the pattern |
| Program-28 | Program to print the pattern |
| Program-29 | Program to print the pattern |
| Program-30 | Program to print the pattern |
| 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 |
| Program-32 | Program to take the details of student and print the details |
| Program-33 | Program on Arithematic operation using pointers |
| 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. |
| 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. |
| Program-36 | Program to output the number of distinct elements in the sorted sequence |
| Program-37 | Program to find the fibonacci sequnce using recursion |
| Program-38 | Program to find the factorial of a number using recursion |
| Program-39 | Program to find the GCD of a number using recursion |
| Program-40 | Program to find the ackerman of given two numbers|
| Program-41 | Program to find sum of two numbers without using any operator |
| Program-42 | Program to print Floyd’s triangle Without using a temporary variable and with only one loop |
| Program-43 | Program for printing the hollow triangle pattern |
| Program-44 | Program for implementation of the approach |
| Program-45 | Program to illustrate the above given pattern of numbers. |
| Program-46 | Program to convert binary number to decimal |
| Program-47 | Program to find the maximum and minimum element in an array|
| Program-48 | Program to check if a number is even or odd |
| Program-49 | Program to find the sum of the digits of the given number |
| Program-50 | Program to check whether a given number is a palindrome or not |
| Program-51 | Program to print duplicates in an array |
| Program-52 | Program to find whether the given element is present in the array or not |
| Program-53 | Program to find the position of an element in an array |
| Program-54 | Program to check whether two strings are anagrams or not |
| Program-55 | Program to print print a number in binary |
| Program-56 | Program to calculate the number of vowels and consonants in a string |
| Program-57 | Program to calculate the grade |
| Program-58 | Program to find the sum of elements between indexes |
| Program-59 | Program to Search Students details in a list |
| Program-60 | Program to print kaprekar number in a given range |
| Program-61 | Program to find the all the prime numbers between the given range. |
| Program-62 | Program to calculate the average of 5 numbers. |
| Program-63 | Program to print Pascal's Triangle. |
| Program-64 | Program to check Armstrong number. |
| Program-65 | Program to Find Transpose of a Matrix |
| Program-66 | Program to find fibonacci series upto n values in C language. |
| Program-67 | Program to calulate all the prime between the range of numbers includes the numbers which is provided. |
| Program-68 | Program to accept 0s and 1s as input and print if it consists 3 consecutive 0s |
| Program-69 | Program to find strong number |
| Program-70 | Program to make a simple calculator |
| Program-71 | Program to implement stack using array & linked list |
| Program-72 | Program to implement stack using linked list |
| Program-73 | Program to implement stack using array |
| [Program-01](https://github.com/swaaz/basicprograms/tree/master/C/program-1) | Program to print pattern |
| [Program-02](https://github.com/swaaz/basicprograms/tree/master/C/program-02) | Program to check whether the given number is prime or not |
| [Program-03](https://github.com/swaaz/basicprograms/tree/master/C/program-13) | Program to find largest of three number using simple if condition |
| [Program-04](https://github.com/swaaz/basicprograms/tree/master/C/program-04) | Program to find largest of three number using if-else condition |
| [Program-05](https://github.com/swaaz/basicprograms/tree/master/C/program-05) | Program to find largest of three number using nested if condition |
| [Program-06](https://github.com/swaaz/basicprograms/tree/master/C/program-06) | Program to find largest of three number using ternary operator |
| [Program-07](https://github.com/swaaz/basicprograms/tree/master/C/program-07) | Program to check whether the given year is leap or not |
| [Program-08](https://github.com/swaaz/basicprograms/tree/master/C/program-08) | Program to convert number into year, months and days |
| [Program-09](https://github.com/swaaz/basicprograms/tree/master/C/program-09) | Program to check two number are equal without logical operator |
| [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|
| [Program-11](https://github.com/swaaz/basicprograms/tree/master/C/program-11) | Program on arithmetic operators |
| [Program-12](https://github.com/swaaz/basicprograms/tree/master/C/program-12) | Program on relational operators |
| [Program-13](https://github.com/swaaz/basicprograms/tree/master/C/program-13) | Program on bit-wise operator. |
| [Program-14](https://github.com/swaaz/basicprograms/tree/master/C/program-14) | Program on increment and decrement operator. |
| [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 |
| [Program-16](https://github.com/swaaz/basicprograms/tree/master/C/program-16) | Program to check whether the given number is neon or not |
| [Program-17](https://github.com/swaaz/basicprograms/tree/master/C/program-17) | Program to check whether the given number is prefect or not |
| [Program-18](https://github.com/swaaz/basicprograms/tree/master/C/program-18) | Program to check given number is Armstrong or not |
| [Program-19](https://github.com/swaaz/basicprograms/tree/master/C/program-19) | Program to find power of a given number |
| [Program-20](https://github.com/swaaz/basicprograms/tree/master/C/program-20) Program-20 | Program to convert datatype explicitly |
| [Program-21](https://github.com/swaaz/basicprograms/tree/master/C/program-21) | Program to check whether the given number is prime or not |
| [Program-22](https://github.com/swaaz/basicprograms/tree/master/C/program-22) | Program to find GCD and LCM of given two number |
| [Program-23](https://github.com/swaaz/basicprograms/tree/master/C/program-23) | Program to find number of digits in a given number |
| [Program-24](https://github.com/swaaz/basicprograms/tree/master/C/program-24) | Program to print the pattern |
| [Program-25](https://github.com/swaaz/basicprograms/tree/master/C/program-25) | Program to print the pattern |
| [Program-26](https://github.com/swaaz/basicprograms/tree/master/C/program-26) | Program to print the pattern |
| [Program-27](https://github.com/swaaz/basicprograms/tree/master/C/program-27) | Program to print the pattern |
| [Program-28](https://github.com/swaaz/basicprograms/tree/master/C/program-28) | Program to print the pattern |
| [Program-29](https://github.com/swaaz/basicprograms/tree/master/C/program-29) | Program to print the pattern |
| [Program-30](https://github.com/swaaz/basicprograms/tree/master/C/program-30) | Program to print the pattern |
| [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 |
| [Program-32](https://github.com/swaaz/basicprograms/tree/master/C/program-32) | Program to take the details of student and print the details |
| [Program-33](https://github.com/swaaz/basicprograms/tree/master/C/program-33) | Program on Arithematic operation using pointers |
| [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. |
| [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. |
| [Program-36](https://github.com/swaaz/basicprograms/tree/master/C/program-36) | Program to output the number of distinct elements in the sorted sequence |
| [Program-37](https://github.com/swaaz/basicprograms/tree/master/C/program-37) | Program to find the fibonacci sequnce using recursion |
| [Program-38](https://github.com/swaaz/basicprograms/tree/master/C/program-38) | Program to find the factorial of a number using recursion |
| [Program-39](https://github.com/swaaz/basicprograms/tree/master/C/program-39) | Program to find the GCD of a number using recursion |
| [Program-40](https://github.com/swaaz/basicprograms/tree/master/C/program-40) | Program to find the ackerman of given two numbers|
| [Program-41](https://github.com/swaaz/basicprograms/tree/master/C/program-41) | Program to find sum of two numbers without using any operator |
| [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 |
| [Program-43](https://github.com/swaaz/basicprograms/tree/master/C/program-43) | Program for printing the hollow triangle pattern |
| [Program-44](https://github.com/swaaz/basicprograms/tree/master/C/program-44) | Program for implementation of the approach |
| [Program-45](https://github.com/swaaz/basicprograms/tree/master/C/program-45) | Program to illustrate the above given pattern of numbers. |
| [Program-46](https://github.com/swaaz/basicprograms/tree/master/C/program-46) | Program to convert binary number to decimal |
| [Program-47](https://github.com/swaaz/basicprograms/tree/master/C/program-47) | Program to find the maximum and minimum element in an array|
| [Program-48](https://github.com/swaaz/basicprograms/tree/master/C/program-48) | Program to check if a number is even or odd |
| [Program-49](https://github.com/swaaz/basicprograms/tree/master/C/program-49) | Program to find the sum of the digits of the given number |
| [Program-50](https://github.com/swaaz/basicprograms/tree/master/C/program-50) | Program to check whether a given number is a palindrome or not |
| [Program-51](https://github.com/swaaz/basicprograms/tree/master/C/program-51) | Program to print duplicates in an array |
| [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 |
| [Program-53](https://github.com/swaaz/basicprograms/tree/master/C/program-53) | Program to find the position of an element in an array |
| [Program-54](https://github.com/swaaz/basicprograms/tree/master/C/program-54) | Program to check whether two strings are anagrams or not |
| [Program-55](https://github.com/swaaz/basicprograms/tree/master/C/program-55) | Program to print print a number in binary |
| [Program-56](https://github.com/swaaz/basicprograms/tree/master/C/program-56) | Program to calculate the number of vowels and consonants in a string |
| [Program-57](https://github.com/swaaz/basicprograms/tree/master/C/program-57) | Program to calculate the grade |
| [Program-58](https://github.com/swaaz/basicprograms/tree/master/C/program-58) | Program to find the sum of elements between indexes |
| [Program-59](https://github.com/swaaz/basicprograms/tree/master/C/program-59) | Program to Search Students details in a list |
| [Program-60](https://github.com/swaaz/basicprograms/tree/master/C/program-60) | Program to print kaprekar number in a given range |
| [Program-61](https://github.com/swaaz/basicprograms/tree/master/C/program-61) | Program to find the all the prime numbers between the given range. |
| [Program-62](https://github.com/swaaz/basicprograms/tree/master/C/program-62) | Program to calculate the average of 5 numbers. |
| [Program-63](https://github.com/swaaz/basicprograms/tree/master/C/program-63) | Program to print Pascal's Triangle. |
| [Program-64](https://github.com/swaaz/basicprograms/tree/master/C/program-64) | Program to check Armstrong number. |
| [Program-65](https://github.com/swaaz/basicprograms/tree/master/C/program-65) | Program to Find Transpose of a Matrix |
| [Program-66](https://github.com/swaaz/basicprograms/tree/master/C/program-66) | Program to find fibonacci series upto n values in C language. |
| [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. |
| [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 |
| [Program-69](https://github.com/swaaz/basicprograms/tree/master/C/program-69) | Program to find strong number |
| [Program-70](https://github.com/swaaz/basicprograms/tree/master/C/program-70) | Program to make a simple calculator |
| [Program-71](https://github.com/swaaz/basicprograms/tree/master/C/program-71) | Program to implement stack using array & linked list |
| [Program-72](https://github.com/swaaz/basicprograms/tree/master/C/program-72) | Program to implement stack using linked list |
| [Program-73](https://github.com/swaaz/basicprograms/tree/master/C/program-73) | Program to implement stack using array |