From 8c1019422f7df2704b92e8a015e543d53098ae68 Mon Sep 17 00:00:00 2001 From: ayndiara Date: Thu, 27 Apr 2023 22:23:52 -0300 Subject: [PATCH] =?UTF-8?q?inclus=C3=A3o=20da=20atividade=20da=20semana=20?= =?UTF-8?q?5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exercicios/para-casa/ex.js | 9 +++++++++ exercicios/para-casa/index.html | 13 +++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 exercicios/para-casa/ex.js create mode 100644 exercicios/para-casa/index.html diff --git a/exercicios/para-casa/ex.js b/exercicios/para-casa/ex.js new file mode 100644 index 0000000..3d07eae --- /dev/null +++ b/exercicios/para-casa/ex.js @@ -0,0 +1,9 @@ + +let nota1 = parseInt(prompt("Nota1")); +let nota2 = parseInt(prompt("Nota2")); +let media =(nota1 + nota2) / 2 ; + +if (media <= 5){ + alert("Você não passou, prepare-se para recuperação") +} else (media >=7 ) +alert("Sorria, você foi aprovado") \ No newline at end of file diff --git a/exercicios/para-casa/index.html b/exercicios/para-casa/index.html new file mode 100644 index 0000000..342782f --- /dev/null +++ b/exercicios/para-casa/index.html @@ -0,0 +1,13 @@ + + + + + + + + Document + + + + + \ No newline at end of file