2016年11月10日 星期四

TIOJ 1295 - 第一題 連乘問題

http://tioj.infor.org/problems/1295





1
2
3
4
5
6
7
8
#include<stdio.h>
int main(){
    int n;scanf("%d",&n);
    int a=1,i;for(i=2;i<=n;i++){
        a*=i;
    }
    printf("%d\n",a);
}

沒有留言:

張貼留言