Saturday, August 16, 2014

How To Design A Number Rhombus Pattern C Program

Q. Write a C program to print the following number rhombus pattern design as:

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

Ans.

Friday, August 15, 2014

How To Download All Your Google Data As Gmail, Blogger, Youtube etc

Download All Your Google Data with single click - Google Takeout
Figure: Google product list-download a copy
Today anyone keep his/her data on the web (i.e. clouding). Clouding has its own pro and cons. 

As a advantage of clouding, a authorized person can access his/her personal data any time and any location with a single click. But its major disadvantage is dependency at clouding.

What happen if clouding server is crash, there are no-backup, you can lost all your data and there are no options of restore.





Monday, August 11, 2014

How to Make a Continuous Diagonal Number Pyramid C program

Q. Write a C program to print the following continues odd reverse number pyramid pattern as:

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

Ans.

Sunday, August 10, 2014

What is Data Type In C

In the C Programming Language, Data Types refers to an extensive system for declaring variable of different types. 
A data types tells the following things about the related variable:


Saturday, August 9, 2014

Number Triangle Pattern C Program

Q. Write a C program to print the following number triangle pattern as:

0
101
21012
3210123
432101234
54321012345

Ans.

Thursday, August 7, 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.



S.No. Decimal Binary
1. 0 0
2. 1 1
3. 2 10
4. 3 11
5. 4 100
6. 5 101
7. 6 110
8. 7 111
9. 8 1000
10. 9 1001
11. 10 1010
Table: Comparison of Decimal and Binary Numbers

How to add binary number in computer?
It is simple as we add the decimal number. keep in mind the following trick to addition of binary numbers as:
Rules No. Condition Result Remark
1. 0 + 0 0 -
2. 0 + 1 1 -
3. 1 + 0 1 -
4. 1 + 1 0 carry 1 to next column
5. 1 + 1 + 1 1 carry 1 to next column
Table: Binary number addition rules

Let's we understand the how to add binary number in computer through an example as:
Let's we want to add two decimal number 8+4=12.
When we convert these number decimal to binary, we get:
8 in Binary 1 0 0 0 and,
4 in Binary 1 0 0
Below figure shows the step by step with explanation that how to add these binary numbers:

How to add two binary numbers in computer
Figure: How to add two binary numbers in computer
You can cross check the your answer, through convert the binary value to decimal and add them as we are doing in daily life, after that compare the both values if both are equal, thump's up friend, you  done it, Cheers!!
Four your practice, add the following binary numbers:
(for your  cross check binary addition result, i also write down answer.)

   1 0 1 0 0                      0 0 1 1 1 0                         1 1 0                      1 1 0 0 1 1 1
+ 0 1 1 0 1                  + 1 0 0 1 1 0                       + 1 1 0                  + 1 0 1 1 0 1 1
------------------                 --------------------                ------------                ---------------------
 1 0 0 0 0 1                     1 0 1 1 0 0                      1 1 0 0                   1 1 0 0 0 0 1 0
------------------                  --------------------               ------------                 --------------------


You might also like:

  1. How to convert Decimal number to Binary numbers in Computer?