Course Solutions Uncategorized (Solved) : Code Suposed Output Favorite Number Five Keeps Printing Stop Include Int Main Int 0 Q26470642 . . . .

(Solved) : Code Suposed Output Favorite Number Five Keeps Printing Stop Include Int Main Int 0 Q26470642 . . . .

 

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. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Output S1 Size 0 S1 Empty Testing Push S1 Size 1 17 S1 Empty S1 Size 4 4 6 2 17 S1 Empty T Q33114583 . . . .(Solved) : Output S1 Size 0 S1 Empty Testing Push S1 Size 1 17 S1 Empty S1 Size 4 4 6 2 17 S1 Empty T Q33114583 . . . .

<p><strong>My Output</strong></p><p>s1 (size 0):<br/>s1 is empty</p><p>Testing push()</p><p>s1 (size 1): 17<br/>s1 is not empty</p><p>s1 (size 4): 4 6 2 17<br/>s1 is not empty</p><p>Testing copy constructor</p><p>s1 (size 4): 4 6 2 17<br/>s2