Aprendendo Programação de Computador (Engenharia de Software) - Aula 32: Comandos de repetição. Questão 11
5.0(1)
8 learners
What you'll learn
This course includes
275.5 hours of video
Certificate of completion
Access on mobile and TV
Summary
Full Transcript
11. Read a integer number and calculate its Factorial.
f(n) = n(n-1)(n-2)(n-3)...1
e.g
f(0) = 1 (Exception)
f(1) = 1
f(2) = 1 x 2
f(4) = 1 x 2 x 3 x 4 = 48
f(5) = 1 x 2 x 3 x 4 x 5 = 120
f(6) = 1 x 2 x 3 x 4 x 5 x 6 = 720
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.