Ask your own question, for FREE!
Computer Science 8 Online
MARC:

Coding

MARC:

Repeatition/ looping QUESTION 1 Write a complete C program using nested loop to display the following output. 1 1 1 1 1 2 2 2 2 3 3 3 4 4 5

MARC:

@Ultrilliam need help xD

GAT0R:

how do you code

MARC:

Managed to solve question 2 Write a complete C program using nested loop to display the following output. 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5

MARC:

#include <stdio.h> int main () { int i,j; for(i=1; i<=5;i++) { for(j=1;j<=i;j++) { printf("%d",i); } printf("\n"); } return 0; }

GAT0R:

sorry i tried to but i dont now

photonics:

http://codepad.org/ew0HWHxj

photonics:

i cleaned up formatting in the second to make it consistent

MARC:

Ooooh I c,thanks inky ^^

Ultrilliam:

Whoop, missed it, lol

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!