```<!--/**
* GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
* (http://qbnz.com/highlighter/ and http://geshi.org/)
*/
.python  {font-family:monospace;color: #000066;}
.python a:hover {background-color: #f0f000;}
.python .head {font-family: Verdana, Arial, sans-serif; color: #808080; font-size: 70%; font-weight: bold;  padding: 2px;}
.python .imp {font-weight: bold; color: red;}
.python .kw1 {color: #ff7700;font-weight:bold;}
.python .kw2 {color: #008000;}
.python .kw3 {color: #dc143c;}
.python .kw4 {color: #0000cd;}
.python .co1 {color: #808080; font-style: italic;}
.python .coMULTI {color: #808080; font-style: italic;}
.python .es0 {color: #000099; font-weight: bold;}
.python .br0 {color: black;}
.python .sy0 {color: #66cc66;}
.python .st0 {color: #483d8b;}
.python .nu0 {color: #ff4500;}
.python .me1 {color: black;}
.python span.xtra { display:block; }
.ln, .ln{ vertical-align: top; }
.coMULTI, .python span{ line-height:13px !important;}
--># Bucles# Factorial# Calcula el factorial de un número, de forma que:# n! = n * (n - 1) * (n - 2) ... * 1# 5! = 5 * 4 * 3 * 2 * 1 x = int(input("Dame un valor entero: ")) resultado = 1 while x > 1:    resultado *= x    x -= 1 print("Factorial:", resultado) ```
Success #stdin #stdout 0.02s 27720KB
stdin
`5`
stdout
```Dame un valor entero: Factorial: 120
```