Course Solutions Uncategorized (Solved) : Hi C Please Answer Two Questions Clear Handwriting Thanks 27 30 Pts Output Following Neste Q34400407 . . . .

(Solved) : Hi C Please Answer Two Questions Clear Handwriting Thanks 27 30 Pts Output Following Neste Q34400407 . . . .

 

Hi

this C++

please answer these two questions with clear handwriting..

thanks

27)

30 pts.         What is the output of the following nested for loop?

for(int i = 5; i > 0; i–) {

         for(int loop_count= i; loop_count > 0 ;loop_count–)      {

                 cout << i;

         }

         cout <<“##”;

}

29)

24pts.         What is the output of the following code fragment assuming thatnum.dat has the following?

           55       23        1

           22

                 

                 ifstream inf;

inf.open(“num.dat”);

int count = 0, next;

while (inf >> next) {

         count++;

         cout << next<< “#”;

}

inf.close();

cout << endl << ” Countis ” << count;

Expert Answer


An

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

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

Related Post