목록Codeup (4)
기린의 기록을 위한 공간
1081package com.algo.controller; import java.util.Scanner; public class Code{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); System.out.print("정수입력 : "); int a = sc.nextInt(); System.out.print("정수입력 : "); int b = sc.nextInt(); for(int i=1; i
1061package com.algo.controller; import java.util.Scanner; public class Code{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); System.out.print("정수입력 : "); int a = sc.nextInt(); System.out.print("정수입력 : "); int b = sc.nextInt(); //비트연산자 or | System.out.print(a|b); }} 1062package com.algo.controller; import java.util.Scanner; public class Code{ public static void main(..
1015package com.algo.controller; import java.util.Scanner; public class Code{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); float f = sc.nextFloat(); //소숫점 셋 째자리에서 반올림하여 소숫점 둘째 자리까지 출력하기 (%.2f) String str = String.format("%.2f", f); System.out.print(str); }} 1017package com.algo.controller; import java.util.Scanner; public class Code{ public static void main(String..
1001public class Code{ public static void main(String[] args){ System.out.println("Hello"); }} 1002public class Code{ public static void main(String[] args){ System.out.println("Hello World"); }} 1003public class Code{ public static void main(String[] args){ System.out.println("Hello\nWorld"); }} 1004public class Code{ public static void main(String[] args){ System.out.println("'Hello'"); }} 100..