(C#) 8. 코드의 흐름 제어 (for)
for
for
- 최초 작성일: 2021년 3월 21일(월)
##
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
using System;
namespace forEX
{
class Program
{
static void Main(string[] args)
{
int count = 0;
//while (count < 5)
//{
// Console.WriteLine("Hello World");
// count++;
//}
// for (초기화식; 조건식; 반복식)
for (int i = 0; i < 5; i++)
{
Console.WriteLine("Hello World");
}
}
}
}
이 기사는 저작권자의 CC BY 4.0 라이센스를 따릅니다.