logancberrypie

Untitled

Dec 10th, 2015
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. def random():
  2.     a = 500
  3.     b = 100
  4.     c = 100
  5.     d = 5000
  6.     total1 = 0
  7.     total2 = 0
  8.     while b > 0:
  9.         total1 += a
  10.         b -= 1
  11.         total2 += c
  12.         d -= 1
  13.         if b == 1:
  14.             break
  15.        
  16.     print(total1)
  17.     print(total2)            
  18.  
  19.  
  20. random()
Advertisement
Add Comment
Please, Sign In to add comment