분류 전체보기

백준

[JAVA] 백준 10950번 A+B-3

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int count = scanner.nextInt(); for (int i = 1; i

백준

[JAVA] 백준 8393번 합

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Integer a = scanner.nextInt(); Integer res = 0; for (int i = 1; i

백준

[JAVA] 백준 10172번 개

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Integer a = scanner.nextInt(); System.out.println("|\\_/|\n" + "|q p| /}\n" + "( 0 )\"\"\"\\\n" + "|\"^\"` |\n" + "||_/=\\\\__|"); } }

백준

[JAVA] 백준 10171번 고양이

public class Main { public static void main(String[] args) { System.out.println("\\ /\\\n" + " ) ( ')\n" + "( / )\n" + " \\(__)|"); } }

백준

[JAVA] 백준 10430번 나머지

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Integer a = scanner.nextInt(); Integer b = scanner.nextInt(); Integer c = scanner.nextInt(); System.out.println((a+b)%c); System.out.println(((a%c) + (b%c))%c); System.out.println((a*b)%c); System.out.println(((a%c)*(b%c))%c); } }

백준

[JAVA] 백준 9498번 시험성적

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Integer a = scanner.nextInt(); if (a=90) { System.out.println("A"); } else if (a=80) { System.out.println("B"); } else if (a=70) { System.out.println("C"); } else if (a=60) { System.out.println("D"); } else { System.out.println("F"); } } }

백준

[JAVA] 백준 10869번 사칙연산

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Integer a = scanner.nextInt(); Integer b = scanner.nextInt(); System.out.println(a+b); System.out.println(a-b); System.out.println(a*b); System.out.println(a/b); System.out.println(a%b); } }

백준

[JAVA] 백준 10998번 A*B

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Integer a = scanner.nextInt(); Integer b = scanner.nextInt(); System.out.println(a*b); } }

DEV장화
'분류 전체보기' 카테고리의 글 목록 (21 Page)