행렬 Col 과 Row를 입력받기
Console Programming/C# Console 2019. 9. 23. 17:27
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 Syntax09
{
class Program
{
static void Main(string[] args)
{
int col, row;
Console.Write("Col : ");
Console.Write("Row : ");
for(int i = 0 ; i < row ; i++)
{
for(int j = 0 ; j < col ; j++ )
{
Console.Write($"({j},{i})\t");
}
Console.WriteLine();
}
}
}
}
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
|
![](https://blog.kakaocdn.net/dn/cm180d/btqywwEYdrb/6VdWxd9aJKJDHIP3YkrUe1/img.png)
'Console Programming > C# Console' 카테고리의 다른 글
5일차 시험점수를 입력받아 학점으로 출력 (0) | 2019.09.24 |
---|---|
성적입력 프로그램 1일차 (0) | 2019.09.23 |
행렬 4 x 5 (0) | 2019.09.23 |
4일차 *** 상점 *** (6, 7) 구매 개수 선택하기, 재고가 있는 상품 (0) | 2019.09.23 |
4일차 *** 상점 *** (5) 구매,판매 선택하기 (0) | 2019.09.23 |