一到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); }
相关文章
相关标签/搜索