C#/수업 내용

2021-08-17

JSH1 2021. 8. 17. 10:35
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace hello_world
{
    class Program
    {
        static void Main(string[] args)
        {
            string race = "Terran";
            string groundArmament = "Twin 30mm Smoothebore Autocannons";
            string airArmament = "Hellfire AA-scatter missiles";
            int sight = 8;
            float attackDelay = 22f;

            Console.WriteLine("race: {0}", race);
            Console.WriteLine("ground: {0} \nair: {1}", groundArmament, airArmament);
            Console.WriteLine("sight: {0}", sight);
            Console.WriteLine("attackDelay: {0}", attackDelay);
        }
    }
}

'C# > 수업 내용' 카테고리의 다른 글

[C#] ConsoleKeyInfo, 키 입력  (0) 2021.08.18
2021-08-18 오전  (0) 2021.08.18
2021-08-17 2  (0) 2021.08.17
[C#] enum사용  (0) 2021.08.17
2021-08-16  (0) 2021.08.16