program cz.2

 0    8 fiche    guest3813684
Télécharger mP3 Imprimer jouer consultez
 
question język polski réponse język polski
1.
commencer à apprendre
int NSPS (int A[])
2.
commencer à apprendre
int maks_suma = 0; akt_suma; i;
3.
commencer à apprendre
for (i=0; i《N; i++)
3.
commencer à apprendre
if(akt_suma + A[i] 《0)
4.
commencer à apprendre
{akt_suma+=A[i];
5.
commencer à apprendre
if(akt_suma 《 max_suma)
6
commencer à apprendre
{max_suma = akt_suma;}}
7.
commencer à apprendre
else /{akt_suma =0;}}/ return max_suma;}

Vous devez vous connecter pour poster un commentaire.