|  | 
|  | 
| вернуться в форум | wa 7 Послано Mikron  12 июл 2013 19:08why wa #7please 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 | 
 | 
|