close
int main()
{
 int count=1,factor=1;
 cout <<"計數\t"<<"階乘\n";
 do
 {
  factor *= count;
  cout<<count<<'\t'<<factor
   <<endl;
  count++;
 }while (count <= 10);
 return 0;
}
arrow
arrow
    全站熱搜

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