using System;
int input = Convert.ToInt32(Console.ReadLine());
int result = 0;
for (int i = 1; i <= input; i++)
{
result *= i;
Console.WriteLine(result);
}
과제
using System;
using System.Runtime.CompilerServices;
int input1 = Convert.ToInt32(Console.ReadLine());
int input2 = Convert.ToInt32(Console.ReadLine());
int input3 = Convert.ToInt32(Console.ReadLine());
int first = 0;
int second = 0;
int third = 0;
if(input1 >= input2 && input1 >= input3)
{
first = input1;
if(input2 >= input3)
second = input2;
else if(input3 <= input1)
{
third = input3;
}
if (input3 >= input2)
{
second = input3;
}
else if (input2 >= input3)
{
third = input2;
}
}
if(input2 >= input1 && input2 >= input3)
{
first = input2;
if(input1 >= input3)
{
second = input1;
}
else
{
third = input3;
}
if (input3 >= input1)
{
second = input3;
}
else
{
third = input1;
}
}
if (input3 >= input1 && input3 >= input2)
{
first = input3;
if (input1 >= input2)
{
second = input1;
}
else
{
third = input2;
}
if (input2 >= input1)
{
second = input2;
}
else
{
third = input1;
}
}
Console.WriteLine(third + " " + second + " " + first);
고치기
어셈블리어
복잡한 기계어나 명령을 사람이 이해할 수 있는 기호나 단어로 바꿔 만들었습니다.
컴파일
일종의 번역과정을 거쳐, 컴퓨터가 이해하는 기계어 코드로 변환.
인터프린터
명령어를 하나씩 처리 즉 동시통역을 해주는 방식
ex)자바스크립트