백준 10950 A+B -3
Console Programming/C# Console 2019. 10. 1. 08:22
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
32
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace testAnyThing
{
class Program
{
static void Main(string[] args)
{
int inputNum = int.Parse(Console.ReadLine());
int[] a = new int[inputNum];
int[] b = new int[inputNum];
for (int i = 0; i < inputNum; i++)
{
string input = Console.ReadLine();
a[i] = int.Parse(arr[0]);
b[i] = int.Parse(arr[1]);
}
for (int i = 0; i < inputNum; i++)
{
Console.WriteLine(a[i] + b[i]);
}
}
}
}
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
|
![](https://blog.kakaocdn.net/dn/HvNZd/btqyKIkUFu7/3TvktlLpMFaeG9sSkmTEIk/img.png)
'Console Programming > C# Console' 카테고리의 다른 글
백준 11021 A+B -7 (0) | 2019.10.01 |
---|---|
백준 8393 합 (0) | 2019.10.01 |
문자열 다루기 string. Method (0) | 2019.09.27 |
백준 1110 더하기사이클 (0) | 2019.09.26 |
백준 10951 A+B -4 (0) | 2019.09.26 |