Fill This Form To Receive Instant Help
Homework answers / question archive / In the following code, what will be printed when run in Miracle C? Why? (Code needed to make this a complete program intentionally left out
In the following code, what will be printed when run in Miracle C? Why? (Code needed to make this a complete program intentionally left out.)
int j;
while (j < 3)
{
printf("The value of j = %d",j);
j = j + 1;
}
printf("Done! ";);
Here is a corrected code (also attached):
int j;
j = 0 ;
while (j < 3)
{
printf("The value of j = %dn",j);
j = j + 1;
}
printf("Done!n");
Here is output:
The value of j = 0
The value of j = 1
The value of j = 2
Done!