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
PayPal Gateway not configured
PayPal Gateway not configured