Numbers »
C Program to swap two numbers without using third variable
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
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
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
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
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
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
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
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
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
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 »