Skip to content
Simple, Short and Sweet beginners friendly C language programs
C C++
Branch: master
Clone or download

Latest commit

gouravthakur39 Merge pull request #111 from obiwan69/master
Updated README.md: added LCM to the list
Latest commit 1ee7311 Feb 26, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Addition.c
Address of 1-D array
AllTempScalesConv.c
Anagram-Program-in-C checkAnagram.c Oct 7, 2019
AreaAndCircumference.c
Area_of_Circle.c
Area_of_Square.c
Area_of_Triangle.c
ArmstrongNumber.c
Automorphic_number.c
BackgroundThreadSorter.c
BasicArithmatic.c
BasicGame.c
Binary to decimal
BinarySearch.c Added comments in BinarySearch.c Oct 13, 2018
BitwiseAndOperator.c Add files via upload Sep 29, 2018
BitwiseComplementOperator.c
BitwiseLeftshiftOperator.c
BitwiseOddOrEven.c
BubbleSort.c
Buffer Overflow for Kids.md
CalcUsingSwitchCase.c
CelciusToKelvinConv.c
Changingbase.c
CheckCharacterType.c
CommonElementsInTwoArrays.c CommonElementsInTwoArrays.c Oct 2, 2019
DailyWageCalc.c
DayNameUsingSwitchCase.c
Decimal to Binary
DecimalToBaseN.c
DecimalToBinary.c
DecimalToHexadecimalViceVersa.c
DecrementOperator.c
Diagonal-Difference.c
DiceRoll.c
DigitalRoot.c
DisplayLinuxEnvirmentVariables.c
Division.c
DynamicTwoDArrayUsingArrayOfPointer.c
DynamicTwoDArrayUsingOnePointer.c
EmployeeGrade.c
EncryptDecryptXOR.c
Even Fibonacci numbers
Factorial.c
FahrenheitToCelciusConv.c
FibonacciGeneration.c
FindAsciiValue.c
FindRemainder.c
GotoStatementEvenOrOdd.c
Gross_Salary.c
HaystackAndNeedle_SubString.c Rename SubString.c to HaystackAndNeedle_SubString.c Oct 3, 2018
HelloWorld.c
IncrementOperator.c
Insertionsort.c
LICENSE
Largest.c
LeapYearTernaryOperator.c
LenghtOfString(without using strlen).cpp
Linked List Creation
LowercaseToUppercase.c Initial programs Sep 25, 2018
MagicNumbers.c
Mergesort.c
MirrorNumber.c
NestedIfLeapYear.c
NestedifGreatestInteger.c
NumberPattern.c
Palindrome.c
PalindromeNumber.c
PascalTriangle.c
Pattern Combos
Pattern1.c
PerfectNumber.c
Pointers.c
Polynomial_linklist.c
Position of First'n'Second maximum element in Array without sorting First and Second max element in an array Oct 13, 2019
Position_of_First'n'Second_max_elements_without_sorting_array
Prime.c
PrimeByEratosthenes.c
Quicksort.c
README.md Update README.md Oct 15, 2019
Recursion.c
RecursiveFactorial.c
RelationalOperators.c
ReverseNumber.c
ReverseNumber2.c
RussianPeasantMultiplication.c
Screenshot.PNG Revert "Added a Cprogram to check primality" Oct 7, 2019
SegmentationFaultorBusErrorDemo.c
SelectionSort.c
Separate.c
SimpleArithmeticAverage
SimpleEMICalculator.c
SimpleInterestCalculator.c
SimpleMultiplicationTable.c
Simple_Interest.c
SizeofOperator.c
SparseMatrix_017.c
SquareRoot.c
Stack - Linked List.c
Star_Pattern.c
StringLength.c
Structure.c
StudentMarksPercentage.c
Subtraction.c
SumUsingThreads.c Updated Code Oct 9, 2019
SwapByRefandCopy.c
SwapIntegers.c
SwapIntegersWithout3rdVariable(Arithmatic).c
SwapValueUsingThirdVariable.c Initial programs Sep 25, 2018
SwapValueWithoutUsingThirdVariable.c
Swap_1.c
Swap_2.c
Swapping(without using extra variable).cpp
Temperature.c
TemperatureSwitch.c
TernaryOperator.c
Trif.c Basic_Examples Oct 8, 2019
UppercaseToLowercase.c
VowelorConsonant.c
alphabetTriangle.cpp
combine_calculator.c
counting_sort.c
dynamicMemoryAllocation.c add an example of malloc() Oct 15, 2019
endian.c
gcd.c add gcd Oct 7, 2019
heap sort.c
increment_number.c
isInputLeapYear.c
large_factorial.c
last-digit-fibonacci.c
lcm.c
nCrCalculatorLargeNumbers.c
oddandeven.c
priority_queue.c
swappingwithoutthirdvariable.c
transposeOfMatrix.c

README.md

Beginners C Program Examples

:octocat: Fork and ✴️ star this repo

Simple, short and sweet beginners friendly C language programs

“That's the thing about people who think they hate computers. What they really hate is lousy programmers.” ― Larry Niven

These program are written in codeblocks ide for windows. These programs are not very sophisticated as these are beginners friendly and have many bugs. Anyone who is new to c language can practice these examples.

  • Only programs written in c language will be merged.
  • Beautify/Format your code before making a PR. Poorly stuctured code with inconsistent spacing and bad variable name will not be merged.
  • Use this tool to beautify your code : https://codebeautify.org/c-formatter-beautifier
  • Make sure your program works after beautifying it.
  • #include< stdio.h > is wrong and you must remove whitespaces. #include<stdio.h> is correct.
  • Please check your spellings before making a PR
  • Comment code properly.

alt text

List of programs

Contributing

This is a personal learning project for me.

Please feel free to fork this repo. Pull request to submit more programs.

You can’t perform that action at this time.