목록Algorithm/codeUp기초100제 (6)
기린의 기록을 위한 공간
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(..
1041package com.algo.controller; import java.util.Scanner; public class Code{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); char word = sc.next().charAt(0); System.out.println((char)(word+1)); }} 1042import java.util.Scanner;import java.util.StringTokenizer; public class Code{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String nums ..
1022 import java.util.Scanner; public class Code{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String data = sc.nextLine(); System.out.println(data); } } 1023package com.algo.controller; import java.util.Scanner;import java.util.StringTokenizer; public class Code{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String num = sc.nextLine..
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..