2021.12.10.

import java.util.Scanner;
class Solution {
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);
}
}
import java.util.Scanner;
class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
/* 수정한 부분 */
for (int i = 0; i < b; i++) {
for (int j = 0; j < a; j++) {
System.out.print("*");
}
System.out.println();
}
}
}

class Solution {
public long[] solution(int x, int n) {
long[] answer = {};
return answer;
}
}
class Solution {
public long[] solution(int x, int n) {
long[] answer = new long[n];
long temp = x;
for (int i = 0; i < n; i++) {
answer[i] = temp * (i+1);
}
return answer;
}
}

class Solution {
public int[][] solution(int[][] arr1, int[][] arr2) {
int[][] answer = {};
return answer;
}
}
class Solution {
public int[][] solution(int[][] arr1, int[][] arr2) {
int[][] answer = new int[arr1.length][arr2.length];
for (int i = 0; i < arr1.length; i++) {
for (int j= 0; j < arr1.length; j++){
answer[i][j] = arr1[i][j] + arr2[i][j];
/* 두 겹짜리 배열이니까 이렇게 하면 되지 않을까? 했지만
애초에 answer을 선언할 때 배열의 크기에서 오류가 있음.*/
}
}
return answer;
}
}
class Solution {
public int[][] solution(int[][] arr1, int[][] arr2) {
int[][] answer = new int[arr1.length][arr1[0].length];
/* arr1 안에서도 겉이랑 안의 length를 따로 쓸 수 있구나 */
for (int i = 0; i < arr1.length; i++) {
for (int j= 0; j < arr1[0].length; j++){
answer[i][j] = arr1[i][j] + arr2[i][j];
}
}
return answer;
}
}