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) : Perfectly Competitive Market P 20 Firm S Cost Function C Q 3 Q2 44 Firm S Producer Surplus Q33346601 . . . .(Solved) : Perfectly Competitive Market P 20 Firm S Cost Function C Q 3 Q2 44 Firm S Producer Surplus Q33346601 . . . .

<p style="margin-left:0px;margin-right:0px;">In a perfectlycompetitive market:  p* = 20</p><p style="margin-left:0px;margin-right:0px;">The firm's costfunction is:</p><p style="margin-left:0px;margin-right:0px;">c(q) = 3 q2+ 44</p><p style="margin-left:0px;margin-right:0px;">What is the firm'sproducer surplus?</p><p style="margin-left:0px;margin-right:0px;">ROUND TO TWO DECIMALPLACES</p><p style="margin-left:0px;margin-right:0px;"/> Expert Answer Answer