Skip to content

Instantly share code, notes, and snippets.

@devtvas
Last active April 1, 2018 05:09
Show Gist options
  • Save devtvas/1b128f43f2e61831162c9a9421cacaa1 to your computer and use it in GitHub Desktop.
Save devtvas/1b128f43f2e61831162c9a9421cacaa1 to your computer and use it in GitHub Desktop.
My tabuada
import javax.swing.JOptionPane;
public class Main10 {
public static void main(String[] args) {
int N = 0;
N = (Integer.parseInt(JOptionPane.showInputDialog("Digite um numero da Tabuaba: ")));
for (int i=0; i < 10; i++){
int mult = N*1;
JOptionPane.showMessageDialog(null, N+" x "+i+" = "+(mult * i));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment