Vous êtes sur la page 1sur 1

package pkg3datos;

/**
*
* @author Erick
*/
import java.util.Scanner;
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Scanner d =new Scanner (System.in);
String[]nombres= new String[3];
String[]apellido=new String[3];
float[]cuenta=new float[3];
int k;
System.out.print("programa nombre , apellido y numero de cuenta\t ");
for(k=0;k<3;k++){
System.out.print("ingrese Nombre: ");
nombres[k]=d.nextLine();
System.out.print("ingrese apellido: ");
apellido[k]=d.nextLine();
System.out.print("ingrese numero de cuenta:");
cuenta[k]=d.nextFloat();
d.nextLine();
}
for(k=0;k<3;k++){
System.out.print("\n\t su nombre es: "+nombres[k]+"\t su apellido: "+apelli
do[k]+"\tsu numero de cuenta es\t: "+cuenta[k]);
}
}
}

Vous aimerez peut-être aussi