3일차 당신이 좋아하는 과일의 이름은 무엇입니까?
Console Programming/C# Console 2019. 9. 20. 10:10당신이 좋아하는 과일의 이름은 무엇입니까? //입력받기 "딸기"
오! 당신은 딸기를 좋아하시는군요.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Syntax05
{
class Program
{
static void Main(string[] args)
{
Console.Write("당신이 좋아하는 과일은 무엇입니까?");
string input = Console.ReadLine();
Console.WriteLine($"오! 당신은 {input}을 좋아하시는군요.");
}
}
}
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
|
![](https://blog.kakaocdn.net/dn/b49VdC/btqyp0fP1pS/kye0HWsCRkfB1opkgqQ8r1/img.png)
'Console Programming > C# Console' 카테고리의 다른 글
3일차 당신이 입력한 숫자의 합은 ... 입니다. (0) | 2019.09.20 |
---|---|
3일차 *** 0보다 크고 100보다 작은 숫자 두개를 입력하고 출력하기 *** (0) | 2019.09.20 |
Console.Clear(); (0) | 2019.09.20 |
Console.ReadLine(); (0) | 2019.09.20 |
Console.WriteLine Method (0) | 2019.09.20 |