Numbers »

C Program to swap two numbers without using third variable

Mr Coder February 9, 2013 3

C Program to swap two numbers without using third variable : Swapping of variables means mutually exchanging the values of the variables. Swapping data is a very important component of numerous algorithms. For example,

Read More »

C program to convert Roman Number to Decimal Number

Mr Coder November 5, 2012 2

C program to convert Roman Number to Decimal Number : In my previous code, we have learned how to write a C program to convert Decimal number to Roman Number. Today we will learn

Read More »

C program to Convert Decimal Number into Roman Number

Mr Coder October 13, 2012 3

C program to Convert Decimal Number into Roman Number : Roman numerals, the numeric system in ancient Rome, uses combinations of letters from the Latin alphabet to signify values. There are several ways of

Read More »

C program to find GCD of two Numbers

Mr Coder September 19, 2012 18

C program to find GCD of two numbers : GCD stands for Greatest common divisor. The greatest common divisor is the largest integer that divides both number1 and number2 without a remainder. GCD is

Read More »

C program to find LCM of two Numbers

Mr Coder September 19, 2012 4

C program to Find LCM of two Numbers : LCM i.e. Least Common Multiple also called the lowest common multiple or smallest common multiple of two integers a and b, is the smallest positive

Read More »

C Program of Set Operations in Maths

Mr Coder September 8, 2012 3

C program of set operations in Maths : A set in mathematics is a collection of well defined and distinct objects, considered as an object in its own right. In the below program, i have

Read More »

C program to Print Pascal Triangle | C code champ

Mr Coder August 25, 2012 12

C program to print pascal triangle : In our previous code, we have seen how to draw a pyramid using C program. Now we will see how to extend our previous logic to print

Read More »

C program of Booth’s multiplication algorithm

Mr Coder August 23, 2012 1

C program of booth’s multiplication algorithm : Booth’s multiplication algorithmis a multiplication algorithm that multiplies two signed binary numbers in two’s complement notation. (source : Wikipedia)  Booth’s algorithm can be implemented by repeatedly adding

Read More »

C program to find armstrong number

Mr Coder August 17, 2012 2

C program to find Armstrong number : Armstrong numbers are those numbers in which sum of cubes of individual digits is equal to the number. For example 371 = 33 + 73 + 13

Read More »

C program to reverse a number | C code champ

Mr Coder August 17, 2012 1

C program to reverse a number : Write a program in C which accepts a number as input and displays the number in reverse order in the output. Suppose number is 12345, so its

Read More »