Advertisement
d3dx939dll

Aula12 - Fatorando Numero [EXERCICIO]

Dec 17th, 2020 (edited)
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. /*
  2. AULA: Fatorando numeros (#12)
  3. DATA: 16/12/2020
  4. Grupo: HEIKOA
  5. */
  6. #include <stdio.h>
  7.  
  8. int main()
  9. {
  10.     int fatorial = 10;
  11.     int resposta = 1;
  12.  
  13.     for ( ; fatorial >= 1; --fatorial){
  14.         resposta *= fatorial;
  15.     }
  16.  
  17.     printf("O Numero Faturado: %i", resposta);
  18.  
  19.     return 0;
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement