The segmentability of the two numbers
Write a program that receives two A and B numbers from the user and checks whether the number A by B is segmentable.
Write a program that receives two A and B numbers from the user and checks whether the number A by B is segmentable.
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
while True: a = int(input("enter a number: ")) b = int(input("enter a number2:(b!=0) ")) if a % b == 0: print("yes") else: print("No")
while 1: a = int(input("number 1 : ")) b = int(input("number 2 : ")) if b != 0: if a % b == 0: print("bakhshpazir ast") else: print("bakhshpazir nist") else: print(" number 2 can't be (0)")
def bakhsh_paziri(): a = float(input("Enter the first number: ")) b = float(input("Enter the second number: ")) if a//b == 0: return True else: return False print(bakhsh_paziri())
a=int(input("a:")) b=int(input('b:')) print(a%b==0)
a = int(input("enter your number:")) b = int(input("enter your number:")) if a % b == 0: print(True) else: print(False)
class Math: def __init__(self, a,b): self.a=a self.b=b def Solve(self): if a%b==0: return "yes" else: return "No" a=int(input("enter your number:")) b=int(input("enter your number:")) obj=Math(a,b) print(obj.Solve())
a=int(input("Enter a number: ")) b=int(input("Enter a number: ")) c=(a%b) if c==0: print("True")
Submitting answers is currently unavailable.
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.