Codigo
Codigo
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to
change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this
template
*/
package examencorte2;
import java.util.Scanner;
/**
*
* @author heche
*/
public class ExamenCorte2 {
static Scanner sc = new Scanner (System.in);
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
menu();
break;
case 3:
arreglo();
menu();
break;
case 4:
break;
case 5:
matriz ();
menu();
break;
default:
throw new AssertionError();
}
}
public static void arreglo () {
System.out.println("Ejemplo. Ingrese 5 numeros, que se acumularan en un vector
y luego se sumaran");
int vec[] = new int [5];
int suma = 0;
}
System.out.println("Total de suma");
System.out.println(suma);