boris-vlasenko

ax=b

Oct 26th, 2015
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. #ax=b
  2. a = int(input())
  3. b = int(input())
  4. #ax=b
  5. #0x=b
  6. #0x=0
  7. #ax=0
  8.  
  9.  
  10. if a != 0 and b != 0:
  11.     if b % a == 0:
  12.         print('x=',b/a)
  13.     else:
  14.         print('no solutions')
  15. if a == 0 and b != 0:
  16.     print('no solitions')
  17. if a == 0 and b == 0:
  18.     print('many solutions')
  19. if a != 0 and b == 0:
  20.     print('x = 0')
Advertisement
Add Comment
Please, Sign In to add comment