-
Notifications
You must be signed in to change notification settings - Fork 27
/
IMC
74 lines (74 loc) · 1.68 KB
/
IMC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": [],
"authorship_tag": "ABX9TyPd4SQupK5OFbBFGS6V/MB5",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/github/mleyvaz/AV/blob/master/IMC\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "markdown",
"source": [
"## Cálculo del indice de la masa corporal"
],
"metadata": {
"id": "OwRzpGYwGLde"
}
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"cellView": "form",
"id": "Jc7jAYkZGIxT",
"outputId": "153825e0-6480-4f68-d735-54228d26908b"
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"75.0\n"
]
}
],
"source": [
"#@title Cálculo del IMC { run: \"auto\" }\n",
"estatura = 1.80 #@param {type:\"number\"}\n",
"peso = 75 #@param {type:\"number\"}\n",
"imc=peso/estatura**2\n",
"print(imc)\n"
]
},
{
"cell_type": "markdown",
"source": [],
"metadata": {
"id": "przfrtoJGKRx"
}
}
]
}