일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- 서울맛집
- 범어동맛집
- 반복문
- SQL
- 수성못맛집
- BFS
- 대구삼겹살
- oracle
- 브루트 포스
- 수성못삼겹살
- 대구고깃집
- 대구카페
- 프로그래머스
- programmers
- C#
- 대명동맛집
- 수성구맛집
- 수성구데이트
- 정렬
- 대구맛집
- 안지랑카페
- 들안길삼겹살
- 큐
- 대구데이트
- 조건문
- 백준
- 압구정데이트
- 오라클
- 별찍기
- 앞산카페
- Today
- Total
모든 일상
C# 백준 11022문제 A+B -8 본문
using System;
using System.Text;
namespace ConsoleApp7
{
class Program
{
static void Main(string[] args)
{
int count = int.Parse(Console.ReadLine());
int[] result = new int[count];
int[] num1 = new int[count];
int[] num2 = new int[count];
for (int i = 0; i<count; i++)
{
string[] number = Console.ReadLine().Split();
num1[i] = int.Parse(number[0]);
num2[i] = int.Parse(number[1]);
result[i] = num1[i] + num2[i];
}
for (int j = 1; j <= count; j++)
{
Console.WriteLine($"Case #{j}: {num1[j-1]} + {num2[j-1]} = {result[j - 1]}");
}
}
}
}
'코딩 공부 > C#' 카테고리의 다른 글
C# 백준 2439문제 별 찍기 - 2 (0) | 2021.06.09 |
---|---|
C# 백준 2438문제 별 찍기 - 1 (0) | 2021.06.09 |
C# 백준 11021문제 A+B -7 (0) | 2021.06.09 |
C# 백준 2742문제 기찍 N (0) | 2021.06.09 |
C# 백준 2741문제 N찍기 (0) | 2021.06.09 |