2588 곱셈
Console/Algorithm 2019. 9. 27. 13:32
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
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
{
string input1 = Console.ReadLine();
string input2 = Console.ReadLine();
int a = int.Parse(input2[0].ToString());
int b = int.Parse(input2[1].ToString());
int c = int.Parse(input2[2].ToString());
int d = int.Parse(input2);
int e = int.Parse(input1);
Console.WriteLine(e * c);
Console.WriteLine(e * b);
Console.WriteLine(e * a);
Console.WriteLine(e * d);
}
}
}
}
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
|
'Console > Algorithm' 카테고리의 다른 글
1330 두 수 비교하기 (0) | 2019.09.27 |
---|---|
9498 시험성적 (0) | 2019.09.27 |
10430 나머지 (0) | 2019.09.27 |
10869 사칙연산 (0) | 2019.09.27 |
1008 A/B (0) | 2019.09.27 |