sandra baez wrote:when I introduce the month or the day with a zero in front, for example 05 it gives me the error "int number too large"
Adrian Grabowski wrote:Zero in front means octal number and that's probably why it says that the number is too large
sandra baez wrote:when I introduce the month or the day with a zero in front, for example 05 it gives me the error "int number too large"
Fixed your code tags
sandra baez wrote:Hi Im sorry I said it gives an error with 05. I checked and its after 8, for example 08, 09.
sandra baez wrote:But what if the user uses 08 and 09. Then the program will fail
What happened when you used 08 for August, or a month later in the year?Ron McLeod wrote:I tried your code using a month of 05 and I didn't see any errors . . .
We're being followed by intergalactic spies! Quick! Take this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|