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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
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 janken { | |
public static void main(String[] args){ | |
int a =0; | |
int b =0; | |
String aite =""; | |
String jibun=""; | |
for(int i =0;i <5;i--){ | |
int CPU =(int)(Math.random()*3+1); | |
System.out.printf("1 グー%n2 チョキ%n3 パー%n"); | |
String line = System.console().readLine(); |
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 Main { | |
public static void main(String[] args) throws Exception { | |
for(double i =1;i <=10; i++){ | |
for(double j =1;j <=10;j++){ | |
double a=i/j; | |
System.out.printf("%4.3f\t",a); | |
} | |
System.out.println(""); | |
} |
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 kazuatefame { | |
public static void main(String[] args) { | |
String line =""; | |
int n =0; | |
int kai =0; | |
System.out.println("難易度を入力してください"); | |
String line1 = System.console().readLine(); | |
int Level=Integer.parseInt(line1); |
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
/* | |
* プログラム名 Ryogae2.java | |
* プログラムの内容の説明 日本円(¥)を入力し,その金額を米ドル(US$)に両替するプログラム | |
* 作成日 12/8 | |
*/ | |
public class Ryogae2 { | |
public static void main(String[] args) { | |
String line =System.console().readLine("金額(日本円)="); | |
int n =Integer.parseInt(line); |
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
/* | |
* プログラム名 Ryogae.java | |
* プログラムの内容の説明 日本円(¥)を入力し,その金額を米ドル(US$)に両替するプログラム | |
* 作成日 12/1 | |
*/ | |
public class Ryogae { | |
public static void main(String[] args) { | |