Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.JOptionPane;
- public static void main (String [] args){
- string num = JOptionPane.showInputDialog("Quanti sono i numeri?");
- int i = 1;
- int sum = 0;
- int val = Integer.parseInt(num);
- if (i < val){
- i = i + sum;
- } else {
- JOptionPane.showConfirmDialog(null, somma);
- }
- }
Add Comment
Please, Sign In to add comment