int input ch k7 cv while if and 49 k7 max k7 elif max ch int input cv

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
n = int(input())
ch = 0
k7 = 0
cv = 0
m = 0
while n != 0:
if n % 7 == 0 and n % 49 != 0:
k7 = max(n, k7)
elif n % 7 != 0:
m = max(m, n)
ch += 1
n = int(input())
cv = m*k7
cr = int(input())
if cv == 0:
print('input:', ch)
print('reference value:', 1)
print('calculated value:', cv)
print('values true')
elif cr == cv:
print('input:', ch)
print('reference value:', cr)
print('calculated value:', cv)
print('values true')
else:
print('input:', ch)
print('reference value:', cr)
print('calculated value:', cv)
print('values false')