import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.nextLine(); String[] n = a.split(" "); int num1 = Integer.parseInt(n[0]); int num2 = Integer.parseInt(n[1]); int num3 = Integer.parseInt(n[2]); if(num1>=num2) { if(num1>=num3) {//num1이 최대 if(num2>=num3)//num1>num2>num3 System.out.println(num2); else //num1>num3>num2..
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); System.out.println(a * (b%10)); System.out.println(a* ((b/10)%10)); System.out.println(a* (b/100)); System.out.println(a*b); } } b%10으로 일의 자리 숫자를 추출해 내고 b/100으로 백의 자리 숫자를 추출해냈다. 십의 자리는 그냥 b/10을 하면 일의 ..
1 2 3 4 5 6 7 8 9 10 11 public class Main { public static void main(String[] args) { System.out.println("\\ /\\"); System.out.println(" ) ( ')"); System.out.println("( / )"); System.out.println(" \\(__)|"); } }
10개씩 끊어 출력하기 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String a = sc.next(); for(int i=0;i
합 구하기 1 2 3 4 5 6 7 8 9 10 11 12 13 import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n= sc.nextInt(); int sum=0; for(int i=1;i
별찍기 - 4 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int temp=0; for(int m=0;m
별찍기 -3 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int temp=0; for(int m=0;m0;i--) System.out.print("*"); temp++; System.out.println(); } } } http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5; text-decoration:none">Colored by Color Scri..
별찍기 - 2 JAVA import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int temp=1; for(int m=0;m0;i--){ System.out.print(" "); } for(int j=1;j