int main()
{
 int count=1,factor=1;
 cout <<"計數\t"<<"階乘\n";
 do
 {
  factor *= count;
  cout<<count<<'\t'<<factor
   <<endl;
  count++;
 }while (count <= 10);
 return 0;
}
文章標籤
全站熱搜
創作者介紹
創作者 zerosmall 的頭像
zerosmall

習慣成失落...

zerosmall 發表在 痞客邦 留言(0) 人氣(135)