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. 2471 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<stdio.h> int sum(int num); main() { int n; printf("\n\tENTER THE NO. \t:\t"); scanf("%d",&n); printf("\n\tTHE SUM ...

0 Comments. 1201 views since Mar 3, 2009

Prime Numbers

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

0 Comments. 1194 views since Sep 16, 2008

Hexadecimal to Binary Conversion

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

1 Comments. 1028 views since Sep 3, 2008

Converting Number to Words

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

0 Comments. 949 views since Sep 4, 2008

Decimal to Hexadecimal

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

0 Comments. 926 views since Sep 3, 2008

Decimal to Binary :Bitwise Operator

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

0 Comments. 907 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. 897 views since Sep 4, 2008

Number Conversion: Roman to Decimal

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

0 Comments. 876 views since Sep 4, 2008

Binary to Hexadecimal

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

0 Comments. 853 views since Sep 3, 2008

Armstrong Number

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

1 Comments. 768 views since Mar 4, 2009