-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.java
46 lines (41 loc) · 1.99 KB
/
App.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import java.util.Scanner;
public class App {
public static void main(String[] args) throws Exception {
Scanner reader = new Scanner(System.in);
System.out.println("Ingrese el numero de elementos");
int nPosiciones = reader.nextInt();
System.out.println("***************************");
System.out.println("* CodeRex *");
System.out.println("***************************");
System.out.println("* Lopez.Elizabeth *");
System.out.println("* Morales.David *");
System.out.println("* Pallares.Jose *");
System.out.println("* Paredes.Leon *");
System.out.println("* Pasquel.Johann *");
System.out.println("***************************");
SerieCeroImpar oCeroImpar = new SerieCeroImpar();
System.out.print("\nSerie 1 - 0... for: ");
oCeroImpar.ImparesCeroFor(nPosiciones);
System.out.print("\nSerie 1 - 0... do: ");
oCeroImpar.ImparesCeroDo(nPosiciones);
System.out.print("\nSerie 1 - 0... while: ");
oCeroImpar.ImparesCeroWhile(nPosiciones);
System.out.println();
SerieIncrementoTres oIncrementoTres = new SerieIncrementoTres();
System.out.print("\nSerie 1 - 4... for: ");
oIncrementoTres.IncrementoTresFor(nPosiciones);
System.out.print("\nSerie 1 - 4... do: ");
oIncrementoTres.IncrementoTresDo(nPosiciones);
System.out.print("\nSerie 1 - 4... while: ");
oIncrementoTres.IncrementoTresWhile(nPosiciones);
System.out.println();
SerieMultiplosDos oMultiplosDos = new SerieMultiplosDos();
System.out.print("\nSerie 2 - 6... for: ");
oMultiplosDos.MultiplosDosFor(nPosiciones);
System.out.print("\nSerie 2 - 6... do: ");
oMultiplosDos.MultiplosDosDo(nPosiciones);
System.out.print("\nSerie 2 - 6... while: ");
oMultiplosDos.MultiplosDosWhile(nPosiciones);
System.out.println();
}
}