TOPIC

Wrong answer (10%)

Darlan Amaral asked 3 years ago

Aguem pode ajudar?

//Sequencia IJ 4

include

int main(){

double i,j;

for(i=0;i<=2;i=i+0.2)

for(j=1;j<=3;j++)

 if((i==0.0) || (i==1.0) || ((i>1.8) && (i<=2.0)))

  printf("I=%.0lf J=%.0lf\n",i,i+j);

   else

    printf("I=%.1lf J=%.1lf\n",i,i+j);

     return 0;
}

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

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