Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ax=b
- a = int(input())
- b = int(input())
- #ax=b
- #0x=b
- #0x=0
- #ax=0
- if a != 0 and b != 0:
- if b % a == 0:
- print('x=',b/a)
- else:
- print('no solutions')
- if a == 0 and b != 0:
- print('no solitions')
- if a == 0 and b == 0:
- print('many solutions')
- if a != 0 and b == 0:
- print('x = 0')
Advertisement
Add Comment
Please, Sign In to add comment