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
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")
number = float(input("enter your number:")) if number%5==0: print("divisible") else: print("error")
def check_divisibility_by_5(): # Get a number from the user number = int(input("لطفاً یک عدد وارد کنید: ")) # Checking the number of numbers by 5 if number % 5 == 0: print(f"{number} بر 5 بخش پذیر است.") else: print(f"{number} بر 5 بخش پذیر نیست.") # Implementation of the function check_divisibility_by_5()
Submitting answers is currently unavailable.
Write a function that receives a string (String) as input and reversed it for example Reverse ('amir') # rimareoverse ('Hello') # Olleh
Write a program that receives 2 numbers as the interval, in which the interval of all the 5 existing numbers. For example, in the interval of 1 to 20 the number 2 times the number 5 repeated (5 and 15)
Write a program that can obtain the average infinite number of numbers: First, the program must receive the user's numbers (until the user does not enter the number 0, the numbers must continue ...
Design the database of a restaurant and write a query about making tables and keys. Tips: In this restaurant we want to have a list of foods, orders and customers in the system
Write a program that receives a number from the user and converts to letters suppose the numbers entered between 0 and 1000000 23 ➞ Twenty Three 405 ➞ Four HundredR
Create a link with the following specifications. The phrase link (click here) should be on the code-bezan.ir page Title the phrase (programming exercise) be open but open on the new page
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.