TOPIC
Wrong Answer 5%
Thiago Sousa asked 1 year ago
//Alguém me ajuda por favor, eu já enviei mil submissões e todas estão dando o mesmo problema. Não sei mais o que fazer
//------------------------------------------------------------------------------------------------------------------
includeint main() {
double i = 0, cont = 0;
while (i < 2)
{
if (cont <= 2)
{
cont++;
if (i == 0.0 || i == 1.0 || (i > 1.8 && i < 2.1))
{
printf("I=%.0lf J=%.0lf\n", i, i + cont);
}
else
{
printf("I=%.1lf J=%.1lf\n", i, i + cont);
}
}
else
{
i += 0.2;
cont = 0;
}
}
}
This topic has not been answered yet. Be the first!