/*
* opdrachtP2punt7.java
*
* Created on 21 februari 2007, 0:55
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package opdrachten;
import javax.swing.JOptionPane ;
/**
*
* @author Administrator
*/
public class opdrachtP2punt7 {
/** Creates a new instance of opdrachtP2punt7 */
public static void main(String[] args){
String intCijfer1 =
JOptionPane.showInputDialog(null,
"Wilkeurig aantal getallen: ",
"Opdracht P2.7",
JOptionPane.QUESTION_MESSAGE);
int n = Integer.parseInt(intCijfer1);
for ( int i=0; i< n; i++) {
String cijfer= JOptionPane.showInputDialog(null,
"Wilkeurig aantal getallen: "
+i,
"Opdracht P2.7",
JOptionPane.QUESTION_MESSAGE);
int cijfer1 = Integer.parseInt(cijfer);
System.out.println("invoer: "+cijfer1 + "\t gemiddelde: \t"+(cijfer1/2) );
}
System.exit(0);
}
}