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;
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 |
