Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions students/km62/Parfonov_Anatolij/homework_1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
#task1------------------------------------------------------------
���
�������� ��������, ��� ������ ��� ����� � ����� �� ����. ����� ����� ���������� ������� � �������� �����.

���
#a=float(input("������ �����:"))
b=float(input("������ �����:"))
c=float (input("������ �����:"))
print("�����:",a+b+c)
#-----------------------------------------------------------------


#task2------------------------------------------------------------
���
�������� ��������, ��� ������ ������� ���� ������ ������������ ���������� �� �������� ���� �����. ���������� ������� ������� ������ � ������� ������.

���
#a=float(input("������ �����:"))
b=float(input("������ �����:"))
print(a*b*1/2)
#-----------------------------------------------------------------


#task3------------------------------------------------------------
���
N �������� �������� K ����� � ���������� �� �� ����� ������. ��������� ������ ���������� � ������. ������ ����� ������ ����� �������? ������ ����� ���������� � ������?
�������� ������ ����� N � K. ���� ������� ������� ��� �����: ������ �� ���������� ���� �������.

���
#N=int(input("�-���� �����:"))
K=int(input("�-���� ���������:"))
print("�-���� ����� � ��������:",N//K)
print("�-���� ����� � �������:",N%K)
#-----------------------------------------------------------------


#task4------------------------------------------------------------
���
����� ����� N - ������� ������, ����������� ���� ������. ������ ����� � ������ ���� ���������� �������� ��������, ���� �� ���� ����� 00:00?
�������� ������� �������� ��� �����: ������� ����� (�� 0 �� 23) � ������� ������ (�� 0 �� 59). ³����� �� �����, �� ��������� � ������ ���� ������ ������� ����, ���� ����� N ���� ���� ��������� �������.

���
#N=int(input("�-���� �����:"))
b=N//60
c=N%60
print("����:",b)
print("������:",c)
#-----------------------------------------------------------------


#task5------------------------------------------------------------
���
�������� ��������, ��� ��� �����������, �������� ����� "Hello", ��'� ����������� � ���� ������ ���� �����. ��������� �Hello, Mike!�

���
#name=input("your name:")
print("Hello,",name,"!")
#-----------------------------------------------------------------


#task6------------------------------------------------------------
���
�������� ��������, ��� ����� ���� ����� � ����� ���� ��������� � �������� �������� �� ��������: The next number for the number 179 is 180. The previous number for the number 179 is 178.

���
#a=input("������� �����:")
print("The next number for the number",a,int(a)+1)
print("The previous number for the number",a,int(a)-1)
#-----------------------------------------------------------------


#task7------------------------------------------------------------
���
����� ������� ���������� ��� ��� ����� ����� �� ������ �� ����� �����. � ������� ���� ��������� ���������� ����� ��� �����, � ����������, �� �� ����� ������ ���� ����� �� ����� ���� �����. ��� ��������� ������� ����� ��������� ��������?

���
#a=int(input("������ ������"))
b=int(input("������ ������"))
c=int(input("������ ������"))
d=a//2+a%2
f=b//2+b%2
e=c//2+c%2
print(d+f+e)
#-----------------------------------------------------------------
Binary file added students/km62/Parfonov_Anatolij/homework_2.py
Binary file not shown.
Binary file added students/km62/Parfonov_Anatolij/homework_3.py
Binary file not shown.
Binary file added students/km62/Parfonov_Anatolij/homework_4.py
Binary file not shown.
Binary file added students/km62/Parfonov_Anatolij/homework_5.py
Binary file not shown.
Binary file added students/km62/Parfonov_Anatolij/homework_6.py
Binary file not shown.
Binary file added students/km62/Parfonov_Anatolij/homework_7.py
Binary file not shown.