0

My holloween candy code

I don't know what's wrong with my code. Also I have passed in 4 cases but not last case. What's wrong? #include <stdio.h> int main() { int houses; scanf("%d", &houses); //your code goes here float percent; percent = (float)2/houses*100; printf("%2.0f",percent); return 0; }

17th Jan 2020, 6:49 AM
전은지
전은지 - avatar
1 Resposta
17th Jan 2020, 7:05 AM
Mihai Apostol
Mihai Apostol - avatar