# C/C++ Archive

## Program to Show Prime Numbers between Range

This article shows how to write a C or C++ program to show prime numbers between a Range. Before start let us discuss about the prime numbers. What is Prime Number? In mathematics Prime Number are those number whose can be divided evenly only by 1, or itself. It must be a whole number greater

## C or C++ Program for Case Conversion

This article discuss about case conversion in C or C++ and shows the programs that convert from uppercase to lower case in c or C++. Let us discuss about case conversion. What is Case Conversion? Case Conversion is a process to convert upper case to lower case or to convert lower case to upper case.

## C or C++ Program for Binary search

This article show C/C++ Program for Binary search. Before start let us discuss about binary search. What is Binary Search? Binary search is one kind of searching algorithm.It is very important. C/C++ Code for Binary search #include #include int main() { clrscr(); int n,i,beg,end,mid,data,loc,item; cout<<" \" This program will performs Binary search. \""<<endl<<endl; xx: cout<<"How

## C or C++ Program to Display Fibonacci Series

This article show the program to display Fibonacci series in C/C++. C code to Display Fibonacci Series #include #include #include int main(){ clrscr(); long f0=0,f1=1,f2,i,n; cout<<"\" This program will display Fibonacci Series of n numbers.\""<<endl<<endl; xx: cout<<"How many numbers ?. Give a integer number."<<endl; cin>>n; if(n<0) { cout<<"Negative number is not allow, Please give a

## C or C++ Program to Show Leap Years between a Range

This article show the program to find all the leap years between a range in c/c++. C Code for Leap Years between a Range #include #include int main() { clrscr(); int a,n,i,k=0; cout<<"\"This program will show Leap Years between a range. \""<<endl<<endl; cout<<"What is the starting year ?. Give a starting year. "<<endl; cin>>a; cout<<"What

## Program to Convert Binary to Decimal

This article show the program to calculate decimal number from equivalent binary number, convert from binary to decimal in C/C++. Let us discuss about binary and decimal number system. Convert from Binary to Decimal The decimal (base ten) numeral system has ten possible values (0, 1, 2,3,4,5,6,7,8, or 9). The binary (base two) numeral system

## C or C++ Program to Convert Decimal to Roman Number

This article describes C or C++ program to convert decimal number into roman number, convert from decimal to roman in C/C++. Let us discuss about decimal and roman numbering system. Convert Decimal to Roman Number The decimal (base ten) numeral system has ten possible values (0, 1, 2,3,4,5,6,7,8, or 9). The Roman Number system used

## C or C++ Program to Calculate ASCII Value of a Character

This article describes the program to calculate ASCII value of a character in C/C++. Let us discuss about ASCII value of a character. ASCII Value of a Character ASCII stands for American Standard Code for Information Interchange. Computers can only understand binary numbers. So an ASCII code is the numerical representation of a character such

## C or C++ Program for Counting Sort

This article describes about the program for counting sort in C/C++. Let us discuss about the counting sort. What is Counting Sort? Counting sort is a sorting technique based on keys between specific ranges. It works by counting the number of objects having distinct key values. It performs some arithmetic operation and calculates the position

## C or C++ Program for Bubble Sort

This article describes bubble sort program in c/c++. Let us discuss about Bubble sort. What is Bubble Sort? Bubble sort is the simplest sorting algorithm. Starting from the beginning of the list it’s compared every adjacent pair and swap their position if they are not in the right order (The latter one is smaller than