1.

Which of the following sequence of ‘C’ statements will print the output given below?112123123412345

A. for(x=1; x<5; x++) {for (y=1; yprintf(“%d”, y);printf(“\n”);}
B. for(x=1; x<5; x++) { for (y=1; y<=x; y++)printf(“%d”, y);printf(“\n”);}
C. for(x=1; x<=5; x++) {for (y=1; y< x; y++)printf(“%d”, y);printf(“\n”);}
D. for(x=1; x<=5; x++) {for (y=1; y<=x; y++)printf(“%d”, y);printf(“\n”);}
Answer» E.


Discussion

No Comment Found