This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class aaa { | |
public static void main (String[] args) { | |
int ran = (int)(Math.random()*50)+1; | |
System.out.println("難易度を入力してください"); | |
String line2=System.console().readLine(); | |
int a=Integer.parseInt(line2); | |
int c=0; | |
switch (a) { | |
case 1: | |
c=30; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class bbb { | |
public static void main (String[] args) { | |
for(int i=1; i<=10; i++){ | |
for(int j=1; j<=10; j++){ | |
System.out.printf("%1.3f", (double)i/j); | |
} | |
System.out.println(""); | |
} | |
} | |
} |