Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.JOptionPane;
- public class MegaSena {
- public static void main(String[] args) {
- int a, b, c, d, e, f;
- a = (int) (Math.random() * 61);
- b = (int) (Math.random() * 61);
- c = (int) (Math.random() * 61);
- d = (int) (Math.random() * 61);
- e = (int) (Math.random() * 61);
- f = (int) (Math.random() * 61);
- String texto = "Sugestão Mega-Sena: \n" + a + "-" + b + "-" + c + "-" + d + "-" + e + "-" + f;
- JOptionPane.showMessageDialog(null, texto, "Mega-Sena", JOptionPane.INFORMATION_MESSAGE);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement