200

#include<stdio.h>

int main(void)

{

         int i,n;

         double product;

 

         printf("Enter n;");

         scanf("%d",&n);

         product=1;

         for(i=1;i<=n;i++){

                   product=product*i;

         }

         printf("product=%.0f\n",product);

 

         return 0;

}

posted @ 2013-10-02 20:29  zhaoyang16  阅读(134)  评论(0编辑  收藏  举报