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.
1 1
2 2
3 3
4 4
5 5
4 4
3 3
2 2
1 1
Ans.
Figure: Google product list-download a copy |
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 |
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 |
Figure: How to add two binary numbers in computer |
Figure: Screen shot for Nested 2 Types Symbol Pyramid C Program |
Figure: Screen shot for Nested Number Character Pyramid C program |
Figure: Screen shot for square number triangle C program |
Figure: Screen shot for number triangle pattern C program |
Figure: Screen shot for equal character triangle C program |
Figure: Screen shot for equal number triangle C program |
Figure: Screen shot for character pyramid C program |
Features | First Generation | Second Generation | Third Generation | Fourth Generation | Fifth Generation |
---|---|---|---|---|---|
Period | 1946-1959 | 1959-1965 | 1965-1971 | 1971-1985 | 1985-now |
Electronic Item | Vaccum Tube | Transistor | Integrated Circuit | Microprocessor | VLSIC |
Language | Machine | Assembly | High Level Language | High Level Language | High Level Language |
Storage | Punch Card | Magnetic Tape | Internal Memory | Internal Memory | Internal Memory |
Example | ENIAC | IBM-700, ATLAS | PDP Series's computer, CDC-1700 | IBM-PC, ZX-SPECTRUM | Super Computer, Robot |
Figure: Screen shot for decrease character pyramid C program |