 # C Programming Code Examples

## C > Beginners Lab Assignments Code Examples

### Program for computing Area, Volume and Perimeter of Rrectangle using

Sort the Array Elements using Gnome Sort - This C Program sort the array elements using gnome sort. Gnome sort(stupid sort) is a sort algorithm which is similar to insertion sorting except that 'moving an element' to its proper

Codes Prints Strong Numbers from 1 to n - Program print Strong numbers between 1 to n. Strong number is a special number whose sum of factorial of digits is equal to original number. For example: 145 is strong number.

C Program Check the String is Palindrome - C program code to 'Check whether a String' is palindrome or not without using loop. How to Check whether a string is 'Palindromic String' or not in C. Palindrome string is special string

Finds Size of the Largest Independent Set - Program to find largest independent set in a binary tree. In graph theory, an independent set or stable set is a set of vertices in a graph, no two of which are 'adjacent'. That is, it is a

C Convert the File Contents in Upper-Case - C Program to read a text file and convert the file contents in capital (Upper-case) and write the contents in a output file. Program to copy contents of one file into another by changing

C Code Print Fibonacci Series by Recursion - Program print 'Fibonacci Series' by recursion. "L. Fibonacci" discovered a simple numerical series called Fibonacci Series. Starting with 0 & 1, each new number in the series is simply...

Simple Programs Area Of Square Formula - The second power was described in terms of the area of a square, as in the above formula. It led to the use of the term square to mean raising to the "second power". Thus the area

Finding all Roots of a Quadratic Equation - Find all roots of a quadratic equation using if else. Input coefficients of quadratic equation from user. Store it in some variable say a, b, c. Find Discriminant of the an Equation, using...