For an assignment I need to have a program print the inputted number, and every number before it in sequence ex:
1
12
123
1234
12345
123456
I can get it to print a list of the number but for the love of god I cant get it to print the numbers before hand. I know theres a simple way to do it nesting a while loop in a for loop but I can't fucking figure it out.
>>8
Historical reasons. I thought C++ was always exempt from it, but I have a rule against reading other people's Sepples code.
Name:
Anonymous2010-04-17 18:27
>8
variable declarations in for statement are only valid in C99, not older C89/C90 or earlier nonstandard versions of C (and Visual C++ doesn't support C99 at, just something like C89/C90 and C++98/1x)