프로그래머/코딩(C#)
_17_while
FourthWay
2023. 4. 16. 14:22
728x90
반응형
using System;
namespace _17_while
{
internal class Program
{
static void Main(string[] args)
{
[반복문의 구조]
//1. 시작 int i = 0;
//2. 진행/종료 i < 10 => 9까지
//3. 변화규칙 ++i
int i = 0;
while(i < 10)
{
Console.WriteLine("i=" + i);
++i;
}
}
}
}
728x90
반응형