TOPIC

10% wrong....what is the problem??

Md Arif asked 3 years ago

include

int main() { double i,j,k; for(i=0,k=0; i<=2.0; i=i+0.2,k=k+.2) { for(j=1.0; j<=3.0; j++) { if((i == 1.0) || (i==0.0) || (i > 1.8)) { printf("I=%0.0lf J=%0.0lf\n",i,j+k); } else { printf("I=%0.1lf J=%.1lf\n",i,j+k); } } }

return 0;

}

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

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