<My program only returns the days of a non-leap ye...
# stackoverflow
u
My program only returns the days of a non-leap year Kotlin fun main(args: Array) { val year = 2020 var leap = false val month = 10 if (year % 4 == 0) { if (year % 100 == 0) { leap = year % 400 == 0 } else leap = true val numDay = when (month){ 1 ->"31" 2 ->"29" 3 ->"31" 4 ->"30" 5 ->"31" 6 ->"30" 7 ->"31" 8 ->"31" 9 ->"30" 10 ->"31" 11 ->"30" 12 ->"31" else ->"Invalid Argument" } I can't read the numDay of a leap...