# Author: ayesha

#### Top 10 selling Mobile Phones in India: Trend & Configuration

In the era of frequent technology change, the trend of mobile phones is also evolving remarkably. Have a look at the collection of Top 10 selling Mobile phones that are used and purchased not only because of the appearance, but it can also amaze your mind with a fantastic feature that covers almost every aspect. Best […]

#### Convert a Number Decimal System to Binary System using Recursion in C

Let’s understand how to Decimal Number to Binary Number using recursion in C Programming Language. Convert a Number Decimal System to Binary System using Recursion in C #include <stdio.h>  /*Learn C Programming at CodeAtGlance.com*/ int convert(int); int main() {    int dec, bin;    printf(“Enter a decimal number: “);     scanf(“%d”, &dec);     bin = […]

#### C Program to Convert Octal to Decimal

Let’s understand how to Octal Number to Decimal Number in C Programming Language. C Program to Convert Octal to Decimal #include<stdio.h> #include<conio.h> #include<math.h> /*Learn C Programming at CodeAtGlance.com*/ void main() {                 clrscr();                 long int oct_number, dec_number=0;                 int i=0;                 printf(“Enter any Octal Number : “);                 scanf(“%ld”,&oct_number);                 while(oct_number!=0)                 {                                 […]

#### C Program to Convert Numbers to Roman Numerals

Let’s have a look at how to Convert Number to Roman Number in C Programming Language. C Program to Convert Numbers to Roman Numerals #include <stdio.h> /*Learn C Programming at CodeAtGlance.com*/   int main () {         int number;         printf(“Enter your input:”);         scanf(“%d”, &number);         printf(“Roman Number: “);         while (number > 0) […]

#### C Program to Convert Hexadecimal to Binary

Let’s understand how to Convert HexaDecimal Num to Binary Num in C Programming Language. C Program to Convert Hexadecimal to Binary #include <stdio.h> /*Learn C Programming at CodeAtGlance.com*/ void HexadecimalToBinaryConversion(char* hex_dec) {       long int i = 0;       while (hex_dec[i]) {              switch (hex_dec[i]) {              case ‘0’:                    printf(“0000”);                     break;              case […]

#### C Program to Convert Octal to Binary

Let’s understand how to Convert Octal Num to Binary in C Programming Language. C Program to Convert Octal to Binary #include <stdio.h> /*Learn C Programming at CodeAtGlance.com*/ #include <math.h> long octToBinaryConversion(int octalnum) {     int dec_number = 0, i = 0;     long binarynum = 0;     while(octalnum != 0)     {                 dec_number = […]

#### C Program to Convert Roman Number to Decimal Number

Let’s understand how to Convert Roman Num to Decimal Num in C Programming Language. C Program to Convert Roman Number to Decimal Number #include <stdio.h> /*Learn C Programming at CodeAtGlance.com*/ #include<string.h> int digit(char); int main(){    char num1[1000];    int i=0;    long int num =0;    printf(“Please enter any roman num (Valid digits are […]

#### C Program to Convert Binary to Hexadecimal

Let’s understand how to convert Binary to Hexadecimal in C Programming Language. C Program to Convert Binary to Hexadecimal #include <stdio.h> /*Learn C Programming at CodeAtGlance.com*/ int main() {    long intb_value, hex_value = 0, i = 1, remainder;    printf(“Enter the binary number: “);    scanf(“%ld”, &binaryval);    while (binaryval != 0)    { […]

#### C Program to Convert Binary to Octal

Let’s understand how to to Convert Binary to Octal in C Programming Language. C Program to Convert Binary to Octal #include <stdio.h> /*Learn C Programming at CodeAtGlance.com*/ int main() {     long int b_Num, oct_Num = 0, j = 1, rem;    printf(“Please enter the value for  binary number: “);     scanf(“%ld”, &b_Num);     while […]