Commit 42ada44a authored by alan's avatar alan

V02

parent 1a3ff187
......@@ -875,7 +875,7 @@
},
{
"cell_type": "code",
"execution_count": 160,
"execution_count": 5,
"metadata": {},
"outputs": [
{
......@@ -883,7 +883,7 @@
"output_type": "stream",
"text": [
"Cuantos numeros de Fibonacci desea:\n",
"10\n",
"15\n",
"[1]\n",
"[1, 1]\n",
"[1, 1, 2]\n",
......@@ -893,13 +893,17 @@
"[1, 1, 2, 3, 5, 8, 13]\n",
"[1, 1, 2, 3, 5, 8, 13, 21]\n",
"[1, 1, 2, 3, 5, 8, 13, 21, 34]\n",
"[1, 1, 2, 3, 5, 8, 13, 21, 34, 55]\n"
"[1, 1, 2, 3, 5, 8, 13, 21, 34, 55]\n",
"[1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]\n",
"[1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144]\n",
"[1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233]\n",
"[1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377]\n",
"[1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610]\n"
]
}
],
"source": [
"def fibonacci(n):\n",
" pass\n",
"\n",
"a = 0\n",
"b = 1\n",
"fib = []\n",
......@@ -993,15 +997,15 @@
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Numero a comprobar:99999999\n",
"El 99999999 , NO es perfecto \n"
"Numero a comprobar:6\n",
"El 6 es perfecto\n"
]
}
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment