From c655ffa56f82b6dc2f398f6ace5de8ef4ce49259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Vin=C3=ADcius?= Date: Fri, 25 Aug 2023 22:54:02 +0000 Subject: [PATCH] =?UTF-8?q?Adicionei=20as=20fun=C3=A7=C3=B5es=20de=20multi?= =?UTF-8?q?plica=C3=A7=C3=A3o=20e=20divis=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calculadoraJoao.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 calculadoraJoao.py diff --git a/calculadoraJoao.py b/calculadoraJoao.py new file mode 100644 index 0000000..e5638e3 --- /dev/null +++ b/calculadoraJoao.py @@ -0,0 +1,19 @@ +def soma(a,b): + return a + b + +def subt(a,b): + return a - b + +def mult(a,b): + return a * b + +def div(a,b): + return a / b + +def ehPar(a): + if a % 2 == 0 : + return "É par!" + else: + return "Não, é ímpar" + +print(ehPar(23)) \ No newline at end of file