Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Урок 4 задача 4: решить в целых числах уравнение ax=b (python)
# ax=b a=int(input()) b=int(input()) if b == 0 and a == 0: print('x any') elif b == 0 and a != 0: print('x = 0') elif (b != 0 and a == 0) or (b % a != 0 ): print('no solutions') else: print ( 'x={0}'.format(b // a )) print('x=%d' %(b // a )) print('x=', (b // a ))
run
|
edit
|
history
|
help
0
Primes finding algorithm
HW3-final
PyGen
My code 4
intervalos
Python
Calculator
вправи в пайтон
3-6.격자판 최대합
http