answersLogoWhite

0

The solution is two use a nested for loop:

int startingNum = 1;

int maxNum = 10;

for(int currentNum = startingNum; currentNum <= maxNum; currentNum++)

{

for(int j = 0; j < currentNum; j++)

{

printf("%d", currentNum);

}

printf("\n");

}

User Avatar

Wiki User

16y ago

What else can I help you with?