Factorial De Un Numero En C

  • Uploaded by: Adrián Espinosa
  • 0
  • 0
  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Factorial De Un Numero En C as PDF for free.

More details

  • Words: 61
  • Pages: 1
#include <stdio.h> #include int main() { int num; int i = 1; int factor = 1; printf("Introduce un numero para ver su factorial\n"); scanf("%d", &num); if (num < 0) { printf("No has introducido un numero valido\n"); getch(); } else { while (num > 0) { factor = num * factor; num--; } } printf("El factorial es %d\n", factor); getch(); }

Related Documents


More Documents from ""

Calentamiento Global.pdf
April 2020 16
Expo-legislacion.pptx
November 2019 9
December 2019 16
Acordes Y Cancion Help.docx
November 2019 25