按照规定,在高速公路上行使的机动车,超出本车道限速的10%则处200元罚款;若超出50%,就要吊销驾驶证。请编写程序根据车速和限速自动判别对该机动车的处理。

编译没有错误 但是为什么运行不出来呀
#include <stdio.h>
int main()
{
float v,i;
int j=0;

scanf("%f %f",v,i);


if(v<=i+i*(1.0/10))
{
    printf("ok");
}
else if(v>i+i*(1.0/10)&&v<=i+i*(1.0/2))
{
    printf("处罚200元");
}
else  printf("吊销驾驶证

img


");
return 0;
}

scanf("%f %f",&v,&i);

img

#include <stdio.h>
int main()
{
float v,i;
int j=0;

scanf("%f %f",&v,&i);
 
 
if(v<=i+i*(1.0/10))
{
    printf("ok");
}
else if(v>i+i*(1.0/10)&&v<=i+i*(1.0/2))
{
    printf("处罚200元");
}
else  printf("吊销驾驶证");
return 0;
}


#include <stdio.h>
 
int main(){
   
    int cs, xs, x;//cs车速,xs限速
    
    scanf("%d %d", &cs, &xs);
    
    x = (float)(cs - xs) / xs * 100 + 0.5;
    
    if( x < 10 )      //若未超过10%
        printf("OK");
    else {            //超过10%
        
        if( x < 50 )  //若未超过50%
            printf("Exceed %d%%. Ticket 200", x);
        
        else          //若超过50%
            printf("Exceed %d%%. License Revoked\n", x);
    }
    
    return 0;
}