1)Если предполагается, что функция не будет возвращать в вызывающую программу какой-либо результат, то ее вызов осуществляется: Что включает в себя прототип функции?
Базовыми элементарными структурами, независимо от используемого языка программирования, являются структуры:
Дополнительными элементарными структурами, характерными для языков программирования высокого уровня, например, С++, являются структуры:
am Zhilin Andrey. Andrey is my name and Zhilin is my surname. I am seventeen years old. I want to tell you a few words about my family. My family is not large. I have got mother, father and grandmother. There are four of us in the family.
First of all some words about my parents. My mother is a teacher of biology. She works in a school. She likes her profession. She is a good-looking woman with brown hair. She is 44 but she looks much younger.
My father is programmer. He is forty-six. My father often sings and when we are at home and have some free time I play guitar and we sing together. He is also handy with many things. When he was small he liked to take everything to pieces. My grandmother told me a story that once my father tried to repair their kitchen clock but without success. They had to give it to a repairman. But it happened a long time ago. Now he can fix almost everything.
My parents have been married for 18 years. They have much in common, but they have different views on music, books, and films. For example my father likes horror films and my mother likes soap operas. My father is fond of tennis. My mother doesn't go in for sports.
My parents are hard working people. My mother keeps house and takes care of my father and me. She is very good at cooking. My grandmother is a pensioner. She lives with us and helps to run the house. She is fond of knitting.
I want to become a student. I'd like to learn foreign languages. I always try to be in a good mood.
We have got a lot of relatives.
# 1
print('1)')
num = int(input('Введите число: '))
print(str(num).count('3'))
# 2
print()
print('2)')
p = None
for _ in range(3):
num = int(input('Введите число: '))
if num % 10 != 0:
if num % (num % 10) == 0:
if p == None:
p = num
else:
p *= num
if p != None:
print(p)
else:
print('Таких чисел нет!')
# 3
print()
print('3)')
numbers = []
for _ in range(3):
num = float(input('Введите число: '))
numbers.append(num)
if numbers[0] != numbers[1] and numbers[0] != numbers[2] and numbers[1] != numbers[2]:
numbers = sorted(numbers)
print(numbers[0], numbers[1], numbers[2])
else:
print('Есть одинаковые числа')
# 4
print()
print('4)')
num = int(input('Введите число: '))
s = ''
if num in range(-999, 1000):
if num == 0:
s += 'нуль'
else:
if num < 0:
s += 'отрицательное '
else:
s += 'положительнное '
if num % 2 == 0:
s += 'четное '
else:
s += 'нечетное '
count = len(str(num).replace('-', ''))
if count == 3:
s += 'трёхзначное'
if count == 2:
s += 'двухзнатное'
if count == 1:
s += 'двухзнатное'
print(s)
# 5
print()
print('5)')
g = int(input('g: '))
m = int(input('m: '))
d = int(input('d: '))
if m in [1, 3, 5, 7, 8, 10, 12]:
days = 31
if m == 2:
days = 29
if m in [4, 6, 9, 11]:
days = 30
d += 1
if d > days:
m += 1
if m > 12:
g += 1
m = 1
d = 1
print(d, m, g)