Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. a = int(input())
  2. b = int(input())
  3. c = int(input())
  4. d = int(input())
  5.  
  6. result = ''
  7.  
  8. for i in range(a - 1, b + 1):
  9.    
  10.     if i != a - 1:
  11.         result += str(i)
  12.    
  13.     for j in range(c, d + 1):
  14.         if i == a - 1:
  15.             result += '\t' + str(j)
  16.         else:
  17.             result += '\t' + str(j * i)
  18.  
  19.     result += '\n'
  20.    
  21. print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement