8.07.2014

How to Add Binary Numbers In Computer

What is Binary Number System in Computer?
In binary number system, there are only two number available to represent the numeric values says 0 and 1.
There are 2 symbol (i.e. 0 and 1) used in binary number system, so it is also called base-2 numerical system.

Example of Binary Number:
011, 1110, 101001, 111001011

Before we start that how to add binary numbers, first of all you should know that what will be values of decimal in binary, so below tables give you reference or cross check that binary number addition is correct or incorrect.

8.06.2014

100+ List of C Pyramid Pattern Programs Source Code

C programs Pyramid List With Source Code:

   1  2  3  4  5
  15 14 13 12
   6  7  8
  11 10
   9

    1
    1 2 3
    1 2 3 4 5
    1 2 3 4 5 6 7
    1 2 3 4 5 6 7 8 9

    A
    BAB
    CBABC
    DCBABCD
    EDCBABCDE

    1
    212
    32123
    43212345
    543212345

    A
    ABA
    ABCBA
    ABCDCBA
    ABCDEDCBA
    ABCDEFEDCBA
    ABCDEDCBA
    ABCDCBA
    ABCBA
    ABA
    A

Q.6 Print the Number Triangle Pattern C program as:

    0
    101
    21012
    3210123
    432101234
    54321012345

Q.7 Continuous Diagonal Number pyramid C program as:

    1
   6 2
   10 7 3
   13 11 8 6
   15 14 12 9 5

Q.8 Design a Number Rhombus Pattern C program as:

            1 1
       2   2
      3     3
     4       4
    5         5
     4       4
      3     3
       2   2
        1 1

Q.9 How To Print E-Shape Pyramid In C:

   *****
   *
   ***
   *
   *****

Q.10 How To Print M-Shape Pyramid In C:

   *   *
   ** **
   * * *
   *   *
   *   *

Q.11 How to print V-Shape pyramid in C as:

   *   *
    * *
     *

Q.12 How to make continuous vertical-horizontal number pyramid as:

    1
    6  2
   10  7  3
   13 11  8 4
   15 14 12 9 5

Q.13 How to print T Shape pyramid in C as:

  *****
    *
    *
    *

Q.14 How to T-Shape Character pyramid as:

 DCBABCD
  CBABC
   BAB
    A

Q.15 How to T-Shape number pyramid as:

  4321234
   32123
    212
     1


Q.16 How to design a Character pattern as:

  Aa
  Bb Bb
  Cc Cc Cc
  Dd Dd Dd Dd


Q.17 How to make Taj Mahal shape design as:

  *
  ***
  *****
  *******
  **
  ****
  ******
  *******
  ******
  ****
  **
  *******
  *****
  ***
  *

Q.18 How to make a continuous number pyramid with adding increasing zero digit with each row as:

  1
  02
  003
  0004
  00005
  000006
  0000007
  00000008
  000000009

Q.19 How to make half rhombus shape number triangle as:

  5
  456
  34567
  2345678
  123456789
  2345678
  34567
  456
  5

Q.20 Floyd algorithm character pattern as:

  A
  BC
  DEF
  GHIJ
  KLMNO

Q.21 How Print rectangle pattern program in C as:

  1111111
  1222221
  1233321
  1234321
  1233321
  1222221
  1111111

Q.22 Character triangle shape C Program as:

  ABCDE
  ABCD
  ABC
  AB
  A

Q.23 Write the following character pattern if string is: INDIA

   I
    N
     D
      I
       A

Q.24 Write the following character pattern if string is: INDIA

   A
   II
   DDD
   NNNN
   IIIII

Q.25 Write the following number triangle pattern as:
   
   123454321
   1234321
   12321
   121
   1

Q.26 Write the following character triangle pattern as:

   ABCDEDCBA
   ABCDCBA
   ABCBA
   ABA
   A

Q.27 Write the following Odd and even number pattern program in C as:

    1
    2 4 6
    1 3 5 7  9
    2 4 6 8  10 12  14
    1 3 5 7  9  11  13  15 17 

Q.28 Reverse Floyd Triangle - Half Floyd number diamond 

     1
     2 3
     4 5 6
     7 8 9 10
     4 5 6
     2 3
     1

Q.29 Reverse Floyd Triangle - Half Floyd number diamond 

     4
     4 3 4
     4 3 2 3 4
     4 3 2 1 2 3 4
     4 3 2 3 4
     4 3 4
     4

Q.30 Write the following number reverse pattern in C as:

    1  2  3  4
    8  7  6  5
    9  10 11 12
    16 15 14 13

Q.31 Diagonal Number pattern in C as:
   
            1
           2
          3
         4
        5

Q.32 Continuous table pattern C program:
   
     1  2  3  4  5
     2  4  6  8 10 
     3  6  9 12 15
     4  8 12 16 20

Q.33 Character pattern of half diamond in C :
   
      D
      CDC
      BCDCB
      ABCDCBA
      BCDCB
      CDC
      D
Q.34 Number pattern of half diamond in C :
   
      4
      343
      23432
      1234321
      23432
      343
      4

Q.35 Equal Number pyramid pattern in C as:
     1 2 3 4 5 6
     2 3 4 5 6
     3 4 5 6
     4 5 6
     5 6
     6 

Q.36 Equal Character pyramid pattern in C as:
     A B C D E F
     B C D E F
     C D E F
     D E F
     E F 
     F


Find out your specific C program pyramid pattern at another Big list of 98+ C Pyramid Programs.


7.27.2014

Computer data storage Unit with Comparison their values

Q. What is data storage unit in computer? Compare the storage unit as bit, nibble, byte, kilobyte, megabyte, gigabyte, terabyte, pitabyte, exabyte and so on.

Ans. 

Storage unit is used to measurement of data. In other word the capacity of storage medium is measured in bytes.

There are various storage unit(smallest & biggest) available in the modern computer era. The smallest storage unit is bit. bit is also called binary digit(b) or simple "binary". Hence the value of bit is 0 or 1.

The following table shows the list of computer data storage unit as smallest to biggest:

6.30.2014

Convert any number to word

Q. Write a C program to convert any number to words, for example if 
user entered number = 45764
then output = Four Five Seven Six Four

Ans.

/*c program for convert number to word*/
#include<stdio.h>
int main()
{

6.13.2014

Comparison Million Billion Trillion - Lakh Crore Kharab Series

In daily life we are many time confused about the equality of differ type number unit as million,billion,trillion v/s lakh,crore,kharab etc.
So today let's now knowing about How much million in Lakh and whether a billion is das lakh or ek Arab(i.e. simply Arab).


The answer of above question may be differ as a geographic location. In Europe continents(i.e all english countries) peoples representing the number as Million, Billion, Trillion whereas Asia continents peoples representing the number as Lakh, Crore, Kharab and so on.
Let's comparison of number representing system in tabular format:

6.04.2014

Convert Any Digital Number Value In Words

Q. Write a C program that convert any digital number value in worlds as:

User entered value: 895484
then output in words as:
Eight Lakh Ninety Five Thousand Four Hundred Eighty Four

Ans.

/*c program that convert any digital number to words*/
#include<stdio.h>
#include<conio.h>
#include<math.h>

void checkNumber(int num);
void checkNumber1(int num);
void checkNumber2(int num);
void checkNumber3(int num);
void checkNumber4(int num);

void value1(int num);
void value2(int num);
void value3(int num1,int num2);

int main()
{

 int num;

5.15.2014

Continuous Vertical Number Pyramid

Q. Write a C program to print the following continuous vertical number pyramid design as:

1
2  7 
3  8  13
4  9  14  19
5 10  15  20  25

Ans.

/*c program for continuous vertical number pattern*/
#include<stdio.h>
int main()
{