Fix controllo decrescente
This commit is contained in:
parent
d6a8a7002d
commit
5cbe9039b8
@ -2,8 +2,6 @@
|
||||
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
|
||||
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
|
||||
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
|
||||
<group>
|
||||
<file>file:/home/Verde/git/SequenzaNumeri/src/sequenzanumeri/SequenzaNumeri.java</file>
|
||||
</group>
|
||||
<group/>
|
||||
</open-files>
|
||||
</project-private>
|
||||
|
||||
@ -70,6 +70,8 @@ public class SequenzaNumeri {
|
||||
isDecrescente = false;
|
||||
}
|
||||
|
||||
numeroPrecedente = numeroCorrente;
|
||||
|
||||
System.out.println("Numeri positivi: " + indicePositivi);
|
||||
System.out.println("Numeri negativi: " + indiceNegativi);
|
||||
System.out.println("Numeri uguali a zero: " + indiceZero);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user