hi, this is the multiplication of 19
try to print first 100 number of multiplication of 19
19 38 57 76 95 114 133 152 171 190
209 228 247 266 285 304 323 342 361 380
399 418 437 456 475 494 513 532 551 570
589 608 627 646 665 684 703 722 741 760
779 798 817 836 855 874 893 912 931 950
969 988 1007 1026 1045 1064 1083 1102 1121 1140
1159 1178 1197 1216 1235 1254 1273 1292 1311 1330
1349 1368 1387 1406 1425 1444 1463 1482 1501 1520
1539 1558 1577 1596 1615 1634 1653 1672 1691 1710
1729 1748 1767 1786 1805 1824 1843 1862 1881 1900
try to print only the last part (satuan).
9 8 7 6 5 4 3 2 1 0
9 8 7 6 5 4 3 2 1 0
9 8 7 6 5 4 3 2 1 0
9 8 7 6 5 4 3 2 1 0
9 8 7 6 5 4 3 2 1 0
9 8 7 6 5 4 3 2 1 0
9 8 7 6 5 4 3 2 1 0
9 8 7 6 5 4 3 2 1 0
9 8 7 6 5 4 3 2 1 0
9 8 7 6 5 4 3 2 1 0
woow, see some pattern? it is great
again, print the second part (puluhan)
1 3 5 7 9 1 3 5 7 9
0 2 4 6 8 0 2 4 6 8
9 1 3 5 7 9 1 3 5 7
8 0 2 4 6 8 0 2 4 6
7 9 1 3 5 7 9 1 3 5
6 8 0 2 4 6 8 0 2 4
5 7 9 1 3 5 7 9 1 3
4 6 8 0 2 4 6 8 0 2
3 5 7 9 1 3 5 7 9 1
2 4 6 8 0 2 4 6 8 0
first lines are odd number from 1 to 9 and repeat again.
second lines are even number from 0 to 8 and repeat again.
try to print third part (ratusan).
0 0 0 0 0 1 1 1 1 1
2 2 2 2 2 3 3 3 3 3
3 4 4 4 4 4 5 5 5 5
5 6 6 6 6 6 7 7 7 7
7 7 8 8 8 8 8 9 9 9
9 9 0 0 0 0 0 1 1 1
1 1 1 2 2 2 2 2 3 3
3 3 3 4 4 4 4 4 5 5
5 5 5 5 6 6 6 6 6 7
7 7 7 7 8 8 8 8 8 9
wwoooow, see another pattern . this is amazing.
again, let us print 4th part (thousands).
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
great.
No comments:
Post a Comment