'전체 글'에 해당되는 글 43건

  1. 2019.09.20 Console.WriteLine();
  2. 2019.09.19 9.19
  3. 2019.09.19 9.19

Console.WriteLine();

Console/API 2019. 9. 20. 09:36

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace Syntax03
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("2019-09-20");
            Console.WriteLine("Standard Numeric Format Specifiers");
        }
    }
}
 
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
 

 

Console.WriteLine 뒤에 있는 값을 출력하고 줄을 내린다.

https://docs.microsoft.com/ko-kr/dotnet/api/system.console.writeline?view=netframework-4.8

 

Console.WriteLine Method (System)

뒤에 현재 줄 종결자가 오는, 지정한 데이터를 표준 출력 스트림에 씁니다.Writes the specified data, followed by the current line terminator, to the standard output stream.

docs.microsoft.com

 

 

'Console > API' 카테고리의 다른 글

Console.ReadLine();  (0) 2019.09.20

9.19

Console/실습 2019. 9. 19. 16:00

'Console > 실습' 카테고리의 다른 글

상품 목록(3)  (0) 2019.09.23
상품 목록(2)  (0) 2019.09.23
상품 목록(1)  (0) 2019.09.23
9.20  (0) 2019.09.20
9.19  (0) 2019.09.19

9.19

Console/실습 2019. 9. 19. 11:50
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
33
34
35
36
37
38
39
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace Syntax1
{
    class Program
    {
        static void Main(string[] args)
        {
            for (int i = 0; i <= 10; i++)
            {
                Console.WriteLine("Hello World!");
            }
            Console.WriteLine("***날짜***");
            for (int a = 1; a <= 12; a++) {
                Console.WriteLine(a + "월");
            }
            for (int b = 1; b < 10; b++)
            {
                Console.Write(2); Console.Write(" x ");Console.Write(b);Console.Write(" = ");Console.WriteLine(b * 2);
 
            }
            Console.WriteLine("별찍기1");
            for (int c = 1; c < 6; c++) {
                for (int d = 0; d < c; d++
                    Console.Write("*");
                Console.WriteLine();
            }
            Console.WriteLine("별찍기3");
            for (int i = 0; i < 5; i++)
                Console.WriteLine("*****");
           
        }
    }
}
 
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
http://colorscripter.com/info#e" target="_blank" style="text-decoration:none;color:white">cs

'Console > 실습' 카테고리의 다른 글

상품 목록(3)  (0) 2019.09.23
상품 목록(2)  (0) 2019.09.23
상품 목록(1)  (0) 2019.09.23
9.20  (0) 2019.09.20
9.19  (0) 2019.09.19