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

디아블로 아이템1

by 잰쟁 2023. 7. 19.
728x90

using System;
using System.ComponentModel;

namespace HelloWorld
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string weaponName = "Hand Axe";
            string weaponType = "Axe";
            float dps = 3.2f;
            float minDamage = 2;
            float maxDamage = 3;
            float attackSpeed = 1.30f;
            Console.WriteLine(weaponName);
            Console.WriteLine(weaponType);
            Console.WriteLine(dps);
            Console.WriteLine("Damage Per Second");
            Console.WriteLine("{0}-{1} Damage",minDamage, maxDamage);
            Console.WriteLine("{0:0.00} Attacks per second",attackSpeed);
        }
        }
    }

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

스타크래프트 (마린 vs 저그)  (0) 2023.07.20
디아블로 아이템4  (0) 2023.07.19
디아블로 아이템3  (0) 2023.07.19
디아블로 아이템2  (0) 2023.07.19
HelloWorld  (0) 2023.07.19