Bucles 1 - Suma positius i negatius


Submit solution

Points: 2
Time limit: 1.0s
Memory limit: 64M

Author:
Problem types
Bucles simples, Simple Math
Category
Introduccio
Allowed languages
Bash, C#, Haskell, Java, Kotlin, PHP, Python

Et donen una seqüència de números enters que s'acaba amb un zero. Volem saber si tenim més números positius que negatius o al inrevés.

Entrada

L'entrada consta d'una seqüencia de números enters que s'acaba en un zero.

Sortida

Indicarà POSITIUS si hi ha més positius que negatius, NEGATIUS si hi ha més valors negatius i IGUALS en cas d'empat.

Exemple d'Entrada

1
4
-3
5
-2
-6
7
0

Exemple de Sortida

POSITIUS

Comments


  • 2
    joellazaro  commented on Jan. 9, 2025, 12:59 p.m.

    enter image description here


  • 3
    Ivanchuelo  commented on Feb. 27, 2024, 5:08 p.m.

    boomboklap


  • -6
    rubenutrilla  commented on Feb. 26, 2024, 4:49 p.m.

    This comment is hidden due to too much negative feedback. Click here to view it.


  • 1
    LladosFitness  commented on Oct. 23, 2023, 1:10 p.m.

    para que sirven los do while? yo soy millonario y solo uso for in, faaak


  • -16
    teo_castellvi_7e7  commented on Sept. 28, 2023, 9:22 a.m. edit 2

    This comment is hidden due to too much negative feedback. Click here to view it.


  • -12
    JoelMS  commented on March 14, 2022, 8:05 p.m.

    This comment is hidden due to too much negative feedback. Click here to view it.