Ask coding questions

← Back to all posts
need help
fairoze

pleas help me out this task I can not understand this.

Voters
DJWang
fairoze
Comments
hotnewtop
DJWang

What this is saying is that aYear is not an integer and needs to be one.

fairoze

aYear is integer but while dividing it is saying int can't convert to [email protected]

DJWang
axy1976

try This Code instead !

https://replit.com/@axy1976/TryLeapYear#main.swift

if aYear%4 == 0
{
print("YES")
}
else
{
print("no")
}

MrEconomical

what have you tried so far?

fairoze

to prove a leap [email protected]

MrEconomical

@fairoze my bad
you need to check if aYear/4 equals something, not just if aYear/4

fairoze
fairoze

can't you edit [email protected]

MrEconomical

@fairoze no and I wont