TOPIC

Wrong answer (10%) - Saída aparentemente correta

Rodrigo Vieira asked 2 years ago

include

int main() { double I, J;

for(I=0; I<=2; I+=0.2)
{
    J=I;
    while(J<=I+2)
    {
        J++;
        if(I==0 || I==1 || I>1.8)
        printf("I=%.0lf J=%.0lf\n", I, J);
        else
        printf("I=%.1lf J=%.1lf\n", I, J);
    }
}

}

Onde pode estar o erro?

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.