Check -up segmentation over 5
Write a program that receives a number from the input and checks whether the number is segmented to 5.
Tips: The numeric is on 5 segments that remain the remaining 5 zero
Write a program that receives a number from the input and checks whether the number is segmented to 5.
Tips: The numeric is on 5 segments that remain the remaining 5 zero
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
a=int(input("a:")) print([a % 5 == 0 ])
number = int(input('number: ')) number = number % 5 if number==0: print('the number divisible 5') else: print(" thre number not divisible 5") # Numbers accepted by five sections, one being 0 or 5
a=int(input("enter number:")) if a%5==0: print("bakhsh pazir ast") elif a%5!=0: print("bakhsh pazir nist") else: print("add sefer ast")
# Get input from the user num = int(input('please enter number :')) # Output segmentability and output print if num % 5 == 0 : print('\n True') else : print('\n False')
number = int(input('write number : ')) if number % 5 == 0: # Would be put in place instead of 5 print('true') else : print('false')
a = int(input("adad:")) if a%5 == 0: print("ok") else: print("error")
a=int(input("number: "))
if a % 5==0:
print("GOOD")
else:
print("error......")
Submitting answers is currently unavailable.
Write a program that receives a rectangular length and width from the input and prints its area in the output
Create a button below: when the mouse marker is on it:
Write a program that receives the number of random numbers and its interval from the user and produces the number of random numbers. Example: Enter A Number: 10 Enter Min: 1 Enter Max: 10 9 4 6 5 2 8 1 7 9 2 2
Write a function that receives a text and returns the first 100 characters with "..." if the text is longer than 100 characters. Otherwise it will restore the whole text unchanged.
Write a program that receives 2 numbers from the input and prints the larger number
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.