http://zhidao.baidu.com/question/810986292044542652.html
while (scanf_s("%ul",&number)==1) //多了一个分号
你的网址打不开,粘贴错了吧。
默认为(一个数据)的输入
单单只有数字的时候,默认为一个数字的输入