# Numbers

Numbers

### C Program to find Second Largest number in an Array

C Program to find Second Largest number in an Array : Hey friends today we will learn how to write a C program to find the second largest number in an array. Logic is quite simple, first of all we will sort the elements in an array by using any sorting technique say bubble sort, selection sort or quicksort...

### 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, many of the sorting algorithms, especially comparison sorts, utilize swaps to change the positions of data. We can swap variables using two methods, first by...

### 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 how to write a C program to convert Roman Number to Decimal Number. Roman numerals, the numeric system in ancient Rome, uses combinations of letters from...

### 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 representing the roman numbers say 4 decimal number can be represented as IV or IIII. But as per standardization of Roman Numbers IV is valid...

### 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 also known asĀ  the greatest common factor (gcf), or highest common factor (hcf). Lets understand the concept of GCD using an example : Suppose we want to...

### 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 integer that is a multiple of both a and b or we can simply define LCM of two numbers as the least number(c) that is...