본문 바로가기
C#프로그래밍

HelloWorld

by 노재두내 2023. 7. 19.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HelloWorld
{
    internal class Program
    {
        static void Main(string[] args)
        {
            //변수를 선언하고 값을 할당(=변수의 초기화)
            string characterName = "홍길동";
            Console.WriteLine("이름: "+ characterName);

            int level;//변수 선언, 변수의 정의
            level = 12;//값을 level이라는 이름의 변수를 저장(=값을 할당)
            Console.WriteLine("레벨: "+ level);
        }
    }
}

'C#프로그래밍' 카테고리의 다른 글

디아블로 아이템 - Club  (0) 2023.07.19
디아블로 아이템 - Shiv  (0) 2023.07.19
디아블로 아이템 - Simple Dagger  (0) 2023.07.19
디아블로 아이템 - Double Axe  (0) 2023.07.19
디아블로 아이템 - Hand Axe  (0) 2023.07.19