KDT/C# 프로그래밍

디아블로 아이템2

잰쟁 2023. 7. 19. 16:15
728x90

using System;
using System.ComponentModel;

namespace HelloWorld
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string weaponName = "Club";
            string weaponType = "Mace";
            float dps = 5.4f;
            float minDamage = 3;
            float maxDamage = 6;
            float attackSpeed = 1.20f;
            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);
        }
        }
    }