This code is suposed to output my Favorite number is five, butit keeps on printing it over and over and will not stop.
#include <stdio.h>
int main()
{
int i;
for (i = 0; i <= 10; i++)
{
if (i = 5)
{
printf(“nFive is my favorite numbern”);
}
else
{
printf(“n is %dn”, i);
}
}
return 0;
}
Expert Answer
An answer will be send to you shortly. . . . .