let me have a try.
#include <stdio.h>

int main()
{
for (unsigned int i = 0; i < 5; ++i)
{
        for(unsigned int k = 0; k <= i; ++k)
                print("%d", (k+1));
        
        printf("\n");
}
return 0;
}

Regards,
Wang Jun

On Thu, 2007-12-27 at 03:12 +0000, harry_32r wrote:
> i am new learner of c++. i want to devlop a program using for loop
> that 
> shows
> output like this
> 
> 1
> 1 2
> 1 2 3
> 1 2 3 4
> 1 2 3 4 5
> 
> regards
> 
> 
> 
> 
>  

Reply via email to