Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
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();
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("");
}
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);
/*
* プログラム名 Ryogae2.java
* プログラムの内容の説明 日本円(¥)を入力し,その金額を米ドル(US$)に両替するプログラム
* 作成日 12/8
*/
public class Ryogae2 {
public static void main(String[] args) {
String line =System.console().readLine("金額(日本円)=");
int n =Integer.parseInt(line);
/*
* プログラム名 Ryogae.java
* プログラムの内容の説明 日本円(¥)を入力し,その金額を米ドル(US$)に両替するプログラム
* 作成日 12/1
*/
public class Ryogae {
public static void main(String[] args) {