0

input

Take a number with length 4, the first two number is for a year, second two number is for the month

output

print year print month

month_year=int(input())
month=month_year%100
year=month_year//100
print(year)
print(month)

Easy right but if we give 00 for any part (part one==>year, part two==>month) it will give us 0 it's not what I want I must take the exact number so the correct answer is 00

mkrieger1
  • 19,194
  • 5
  • 54
  • 65
As Sa
  • 3
  • 1
  • 4

0 Answers0