# C Programming Code Examples

## C > For Loops and While Loops Code Examples

### find sum of first and last digit of any number

C Coding Check the Character is Alphabet -
If the ASCII value of the character entered by the user lies in the range 97 to 122 or from 65 to 90, that number is an alphabet. 'a' is used instead of 97 and 'z' is used instead of 122. 'A'

Calculate the Sum of the Elements of each -
Program code take the MxN matrix as input. Define two functions separately for row sum and column sum. Use for loops to calculate the sum of the elements of each row and...

Program Create a File & Store Information -
C Code creates a file & store information. We frequently use files for storing information which can be processed by our programs. In order to store information permanently and

Convert from degree Fahrenheit to Celsius -
C programming code to input temperature in degree Fahrenheit and convert it to degree Centigrade. Code convert temperature from Fahrenheit to Celsius in the C programming.

Cube Root of a Number in C++ Language -
To find 'cube root of any number' we need to find 0.3 power of any number. if you need to find cube root of 27 then calculate 0.3 power of 27, result is 3. So another method for this

Program Finds Prime Factors of a Number -
Factors of a number that are prime numbers are called as "Prime Factors" of that number. For example: 2 and 5 are the prime factors of 10. Logic to check prime factors of a number.

Compares two Integers in The C Language -
Comparing two integer variables is one of the simplest c program you can write at ease. In this program, you can either take input from user using scanf() function or statically define

Program Implement the Vizing's Theorem -
The chromatic index of the simple graph can be either 'maxDegree' or maxDegree+1. The chromatic index is the maximum number of color needed for the 'edge coloring' of graph.