一到x之間的階乘

#include<stdio.h> int main() { int i,x; int c=1; printf("please enter the value what you want"); scanf("%d",&x); for(i=1;i<=x;i++) { c=c*i; printf("%d!=%d\n",i,c); }
相關文章
相關標籤/搜索