You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func foo(x: Int, y: Int)->Int {
var sum: Int
if (x >= y)
return 0
sum = 0;
while (x < y) {
if (x / 2 * 2 == x) {
sum = sum + 1
}
x = x + 1
}
return sum
}
This test case:
Generates:
The text was updated successfully, but these errors were encountered: