⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 factorial.cpp

📁 Topics Practices: Programming and Numerical Methods Practice 1: Introduction to C Practice 2
💻 CPP
字号:
// Calculo del factorial de un numero cualquiera

#include<stdio.h>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     #include<stdio.h>
#include<conio.h>
main()
{
      int a,i;
      float producto;
      printf("ingrese un numero entero: ");
      scanf("%d", &a);
           producto=1;
      for(i=1; i<=a; i=i+1)
      producto*=i;
      printf("El factorial de su numero es %f \n", producto);
      getch();
      }
      

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -