This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| x=int(input("Введите x: ")) | |
| y=int(input("Введите y: ")) | |
| sum=0 | |
| for _ in range(x): | |
| sum = sum + y | |
| print(sum) | |
| x=int(input("Введите х: ")) | |
| y=int(input("Введите у: ")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| k=int(input("Введите число:")) | |
| if k%7==1 or k % 7 == 2 or k % 7 == 3 or k % 7 == 4 or k % 7 == 5: | |
| print("рабочий день") | |
| elif k % 7 == 0 or k % 7 ==6 or k % 7 == 7: | |
| print("выходной день") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| number = int ( input ("Введите число:")) | |
| if number % 10==7: | |
| print(" число оканчивается на 7") | |
| else: | |
| print ("Число не оканчивается на 7") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| number = int ( input ("Введите число:")) | |
| if number % 2 ==0: | |
| print("Четное число ") | |
| else: | |
| print ("Число нечетное") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| k=int(input("Введите число:")) | |
| if k%7==1 or 2 or 3 or 4 or 5: | |
| print("рабочий день") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sm=int(input("Введите число: ")) | |
| metres=sm//100 | |
| print(f"Пoлных метров в этом числе: {metres}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| km_p=int(input("Введите скорость в км/ч: ")) | |
| km=km_p//3.6 | |
| m=int(input("Введите скорость в м/с: ")) | |
| if km>m: | |
| print(f"{km} больше, чем {m}") | |
| elif m>km: | |
| print(f"{m} больше, чем {km}") | |
| else: | |
| print("Скорости одинаковы") |