https://www.acmicpc.net/problem/2742
using System;
using System.IO;
namespace baekjoon
{
class Program
{
static void Main(string[] args)
{
// 표준 입출력 스트림 reader,writer 만들기, 입력받기, int로 바꾸기
// n부터 1까지의 값을 버퍼에 저장, 버퍼 한 번에 비우기
StreamReader sr = new StreamReader(Console.OpenStandardInput());
StreamWriter sw = new StreamWriter(Console.OpenStandardOutput());
string strInput = sr.ReadLine();
int nNum = int.Parse(strInput);
for (int i = nNum; i >= 1; i--)
{
sw.WriteLine(i);
}
sw.Flush();
sr.Close();
sw.Close();
}
}
}