# C Programming Code Examples

## C > For Loops and While Loops Code Examples

### program to convert Hexadecimal to Binary number system

C Programming Comparing Three Integers -
Compare three 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

C++ Check whether Graph is Biconnected -
A recursive function that returns true if there is an articulation point in a graph, otherwise returns false. If graph is Biconnected returns true, otherwise returns false. If this Graph is

C++ Converting Fahrenheit to Centigrade -
To convert temperature from "Fahrenheit" to centigrade in C++, enter the "temperature" in Fahrenheit to convert it to centigrade to print equivalent temperature value in "centigrade"

C Armstrong numbers between an interval -
Declare function to print Armstrong numbers in given range. Lets give a meaningful name to function. Say "printArmstrong()" function prints all Armstrong numbers in given range.

Code Print Natural Numbers from 1 to N -
Declare c recursive function to print natural numbers in a range. Lets give a meaningful name to function, "printNaturalNumbers()". Next we need to print Natural Numbers in...

Increment Operator Decrement Operator -
Basic "arithmetic operators" are +, -, *, /, %. "Increment operator" is ++ and "decrement operator" is --. These operators can be used as before the variable (prefix) and after the

Find sum of Even Numbers in given Range -
Input upper limit to find sum of even number. Store it in a variable say N. Initialize another variable to store sum with 0 say sum = 0. To find sum of even numbers we need to iterate

C++ Coding Repeatedly Search Same Text -
C++ program performs Naive string matching without using any specific library functions. A text and a pattern is given as input. Pattern is 'searched' for in the text and all "instances" of