Advertisement
NamelyViz

NamelyViz1

Oct 12th, 2017
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. x=0
  2. y=0
  3. while 3*x + 4*y <= 52:
  4. print (x,y)
  5.  
  6. y+=1
  7. if 3*x + 4*y == 52:
  8. print ('A megoldások: x= ',x,' y= ',y,'. ',sep='')
  9. elif 3*x + 4*y > 52:
  10. x+=1
  11. y=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement