Beruflich Dokumente
Kultur Dokumente
import java.util.Scanner;
/**
*
* @author USER
*/
public class EXE1 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int n;
Scanner Leer=new Scanner(System.in);
System.out.println ("Introduzca la dimension de la matriz (IMPAR)");
n=Leer.nextInt();
int[][] M = new int [n+1][n+1];
matriz_f (M,n);
mostrar_matriz (M,n);
}
import java.util.Scanner;
/**
*
* @author USER
*/
public class EXE2 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int n;
Scanner Leer=new Scanner(System.in);
System.out.println ("Introduzca la dimension de la matriz");
n=Leer.nextInt();
int[][] M = new int [n+2][n+2];
matriz_f (M,n);
mostrar_matriz (M,n);
}
}
}
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ex.e.pkg3;
import java.util.Scanner;
/**
*
* @author USER
*/
public class EXE3 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
int n;
Scanner Leer=new Scanner(System.in);
System.out.println ("Introduzca un numero");
n=Leer.nextInt();
int[] V = new int [n+2];
vector_primos (V,n);
mostrar_vector (V,n);
import java.util.Scanner;
/**
*
* @author USER
*/
public class EXE5 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int n;
Scanner Leer=new Scanner(System.in);
System.out.println ("Introduzca la dimension de la matriz");
n=Leer.nextInt();
int[][] M = new int [n+1][n+1];
matriz_f (M,n);
mostrar_matriz (M,n);
}
}
}
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ex.e.pkg4;
import java.util.Scanner;
/**
*
* @author USER
*/
public class EXE4 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
int pp;
pp=lote();
System.out.println ("En el lote hay " +pp+ " numeros pares seguidos de un numero primo");
}