| 
 | 
back to boardwa 7 Posted by  Mikron 12 Jul 2013 19:08 why wa #7 please help(   #include <stdio.h>   int main(void) {     int s;     int p;     float zo;       int t = 0;       scanf("%f",&zo);     scanf("%d",&s);     scanf("%d",&p);       while(zo>s){           zo -= zo*p/100;         ++t;       }       printf("%d",t);
        return 0; } Re: wa 7 use float instead of int for s and you will get AC  |  
  | 
|