输出0000--9999,遇到了问题
using System;
using System.Collections.Generic;
using System.Text;
namespace TestC
{
class Program
{
static void Main(string[] args)
{
int i;
int j;
int m;
int n;
for (i = 0; i < 9;i++ )
{
for (j = 0; j < 9; j++)
{
for (m = 0; m < 9; m++)
{
for (n = 0; n < 9; n++)
{
Console.Write(i + j +m + n + " ");
}
}
}
}
}
}
}
以上是我自己写的程序,怎么老是到32就截至了呢?(只要能正确输出0000--9999之间所有的数)
我认为题目也不难,怎么就运行不到俺心里呢?
请高手指点!谢谢