# NUMBER SYSTEM AND BASE CONVERSION - C Codes

## Interconversion of Number System

Description It is a program for conversion of Number System viz. Binary to Decimal,Decimal to Binary,Decimal to Octal, Decimal to Hexadecimal,Octal to Decimal,Octal to Binary,Binary to Octal,Binary to Hexadecimal, Hexadecimal to Binary, Hexadec ...

0 Comments. 2665 views since Sep 4, 2008

## Sum of Digits of a Number

Description TO find sum of digits of a number using recurrsion Source Code #include&lt;stdio.h&gt; int sum(int num); main() { int n; printf("\n\tENTER THE NO. \t:\t"); scanf("%d",&n); printf("\n\tTHE SUM ...

0 Comments. 1293 views since Mar 3, 2009

## Prime Numbers

Description This code prints all the Prime numbers in the user specified range. Source Code #include&lt;stdio.h&gt; #include&lt;conio.h&gt; void main() { int p,n,m; int is_prime; clrscr(); ...

0 Comments. 1280 views since Sep 16, 2008

Description This is a program to display Binary equivalent of an input Hexadecimal Number. Source Code #include &lt;stdio.h&gt; #include &lt;conio.h&gt; #include &lt;stdlib.h&gt; void main() { cha ...

1 Comments. 1125 views since Sep 3, 2008

## Converting Number to Words

Description A program to Convert Numbers into Words. Source Code #include&lt;stdio.h&gt; void pw(long,char[]); char *one[]={&quot; &quot;,&quot; one&quot;,&quot; two&quot;,&quot; three&quot;,&quot; fo ...

0 Comments. 1039 views since Sep 4, 2008

Description Program to convert input Decimal value to its Hexadecimal equivalent. Source Code #include &lt;stdio.h&gt; #include &lt;conio.h&gt; #include &lt;math.h&gt; void dtoh(int d); main() { ...

0 Comments. 1016 views since Sep 3, 2008

## Decimal to Binary :Bitwise Operator

Description This code converts Decimal to Binary number using Bitwise operator. Source Code #include&lt;stdio.h&gt; #include&lt;conio.h&gt; count_bits(int n) { int i=0; for(;n!=0;n=n&gt;&gt;1) ...

0 Comments. 977 views since Sep 17, 2008

## Number Conversion: Decimal to Roman

Description A program to convert Decimal Number to its Roman equivalent with a range of less then 10,000. Source Code /* Roman Decimal 1 ...

0 Comments. 960 views since Sep 4, 2008

Description This is a program which displays Hexadecimal equivalent of a input Binary number. Source Code #include &lt;stdio.h&gt; #include &lt;conio.h&gt; #include &lt;math.h&gt; int btod(int ...

0 Comments. 944 views since Sep 3, 2008

## Number Conversion: Roman to Decimal

Description This is a simple program which converts Roman Number to its Decimal form. Source Code #include&lt;stdio.h&gt; #include&lt;conio.h&gt; #include&lt;string.h&gt; #include&lt;stdlib.h&gt; void ...

0 Comments. 938 views since Sep 4, 2008

## Armstrong Number

Description To find rthe Armstrong numbers within a user specified limit Source Code #include&lt;stdio.h&gt; void arm(int n); main() { int x; printf(&quot;\nenter the limit&quot;); scanf(&quot;%d&quot;,&a ...

1 Comments. 850 views since Mar 4, 2009