728x90
1. ๋ค์๊ณผ ๊ฐ์ด ํ ์คํธ๋ฅผ ์ถ๋ ฅํ๋ ํ๋ก๊ทธ๋จ์ ์์ฑํ์ธ์.
์ฌ๋ฌ๋ถ, ์๋ ํ์ธ์?
๋ฐ๊ฐ์ต๋๋ค!
๋ต)
using System;
namespace HelloWord
{
class MainApp
{
static void Main(string[] args)
{
Console.WriteLine("์ฌ๋ฌ๋ถ, ์๋
ํ์ธ์?");
Console.WriteLine("๋ฐ๊ฐ์ต๋๋ค!");
}
}
}
2. ์๋ ์คํ ๊ฒฐ๊ณผ๋ฅผ ์ถ๋ ฅํ ์ ์๋๋ก ๋ค์ ์ฝ๋์์ 1๊ณผ 2์ ํ์ํ ์ฝ๋๋ฅผ ์ฑ์ฐ์ธ์
์ถ๋ ฅ ๊ฒฐ๊ณผ: Hello Word!
์ฝ๋:
using [1];
class MainApp
{
static void Main(string[] args)
{
[2].WriteLine("Hello World!");
}
}
๋ต)
using System;
class MainApp
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
728x90
'๐ฅ๏ธ > C#' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[C#] ๋ฌธ์์ด(string) ๋ค๋ฃจ๊ธฐ (0) | 2023.08.15 |
---|---|
[C#] ๋ฐ์ดํฐ ํ์ ๊ณผ ๋ฐ์ดํฐ ํ์ ๊ฐ์ ๋ณํ (0) | 2023.08.15 |
[C#] ์์ ๋ก ๋ฐฐ์ฐ๋ C# 07: ํด๋์ค ์ ์ธ, ์์ฑ์, ์ ๊ทผ์ ํ์ (0) | 2023.07.30 |
[C#] c# ๊ณ์ฐ๊ธฐ ๋ง๋ค๊ธฐ (0) | 2023.07.29 |
[C#] ์์ ๋ก ๋ฐฐ์ฐ๋ C# 02~04: ๊ฐ๋จํ ๊ณ์ฐ๊ธฐ ๊ตฌํํ๊ธฐ (0) | 2023.07.28 |