vote up
0
vote down

Interesting Numeric Pattern

>>> for i in range(1,31): ... print(' ' + '1'*30) ... print('x ' + '1'*i) ... print('= ' + str(int('1'*30) * int('1'*i))) ... print() ... 111111111111111111111111111111 x 1 = 111111111111111111111111111111 111111111111111111111111111111 x 11
 
Jason Garber
May 16 2010 01:33 AM
vote up
0
vote down

How to differentiate Addition Operator with Concatenation Operator in Javascript

All we know about Concatenation operator (+) in JavaScript which combine two string with "+" operator in JavaScript(If you want to do concatenation in PHP than use "." character between two strings). Problem creates when you want to do
 
Rakshit Patel
Dec 28 2009 02:33 PM