1.
using System;
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
string weaponName = "Battle Bow";
string weaponType = "Bow";
float dps = 41.3f;
int minDamage = 9;
int maxDamage = 50;
float attackSpeed = 1.40f;
Console.WriteLine(weaponName);
Console.WriteLine(weaponType);
Console.WriteLine("{0:0.0}", dps);
Console.WriteLine("Damage Per Second");
Console.WriteLine("{0}-{1} Damage", minDamage, maxDamage);
Console.WriteLine("{0:0.00} Attacks per Second", attackSpeed);
}
}
}
2.
using System;
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
string weaponName = "Apprentice's Wand";
string weaponType = "Wand";
float dps = 3.0f;
int minDamage = 2;
int maxDamage = 3;
float attackSpeed = 1.20f;
Console.WriteLine(weaponName);
Console.WriteLine(weaponType);
Console.WriteLine("{0:0.0}", dps);
Console.WriteLine("Damage Per Second");
Console.WriteLine("{0}-{1} Damage", minDamage, maxDamage);
Console.WriteLine("{0:0.00} Attacks per Second", attackSpeed);
}
}
}
3.
using System;
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
string legArmorName = "Mystery Pants";
string legArmorType = "Pants";
string itemType = "Armor";
Console.WriteLine(legArmorName);
Console.WriteLine(legArmorType);
Console.WriteLine(itemType);
}
}
}
4.
using System;
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
string consumablesName = "HEALTH POTION";
string consumableType = "Potion";
int restoreLifePercent = 60;
int maxRestoreLife = 5000;
Console.WriteLine(consumablesName);
Console.WriteLine(consumableType);
Console.WriteLine("Instantly restores {0}% Life", restoreLifePercent);
Console.WriteLine("Maximum Stack Amount: {0}",maxRestoreLife);
}
}
}
5.
using System;
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
string weaponName = "Sungjae's Fury";
string weaponType = "Two-Handed Axe";
float dps = 10.0f;
int minDamage = 9;
int maxDamage = 11;
float attackSpeed = 1.00f;
Console.WriteLine(weaponName);
Console.WriteLine(weaponType);
Console.WriteLine("{0:0.0}", dps);
Console.WriteLine("Damage Per Second");
Console.WriteLine("{0}-{1} Damage", minDamage, maxDamage);
Console.WriteLine("{0:0.00} Attacks per Second", attackSpeed);
}
}
}
6.
using System;
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
string weaponName = "Wooden Bo";
string weaponType = "Daibo";
float dps = 17.1f;
int minDamage = 11;
int maxDamage = 20;
float attackSpeed = 1.10f;
Console.WriteLine(weaponName);
Console.WriteLine(weaponType);
Console.WriteLine("{0:0.0}", dps);
Console.WriteLine("Damage Per Second");
Console.WriteLine("{0}-{1} Damage", minDamage, maxDamage);
Console.WriteLine("{0:0.00} Attacks per Second", attackSpeed);
}
}
}
7.
using System;
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
string weaponName = "Man Prodder";
string weaponType = "Polearm";
float dps = 11.4f;
int minDamage = 11;
int maxDamage = 13;
float attackSpeed = 0.95f;
Console.WriteLine(weaponName);
Console.WriteLine(weaponType);
Console.WriteLine("{0:0.0}", dps);
Console.WriteLine("Damage Per Second");
Console.WriteLine("{0}-{1} Damage", minDamage, maxDamage);
Console.WriteLine("{0:0.00} Attacks per Second", attackSpeed);
}
}
}
8.
using System;
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
string wristsArmorName = "Mystery Bracers";
string wristsArmorType = "Bracers";
string itemType = "Armor";
Console.WriteLine(wristsArmorName);
Console.WriteLine(wristsArmorType);
Console.WriteLine(itemType);
}
}
}
9.
using System;
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
string jewelryName = "Mystery Amulet";
string jewelryType = "Amulets";
Console.WriteLine(jewelryName);
Console.WriteLine(jewelryType);
}
}
}
10.
using System;
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
string weaponName = "Parashu";
string weaponType = "Two-Handed Axe";
float dps = 248.0f;
int minDamage = 225;
int maxDamage = 271;
float attackSpeed = 1.00f;
Console.WriteLine(weaponName);
Console.WriteLine(weaponType);
Console.WriteLine("{0:0.0}", dps);
Console.WriteLine("Damage Per Second");
Console.WriteLine("{0}-{1} Damage", minDamage, maxDamage);
Console.WriteLine("{0:0.00}", attackSpeed);
}
}
}
'K-digital traning > C#프로그래밍' 카테고리의 다른 글
Input, enum 활용 (0) | 2023.07.20 |
---|---|
열거형(enum) (0) | 2023.07.20 |
스타크래프트 마린 (0) | 2023.07.19 |
디아블로 아이템 사전 (0) | 2023.07.19 |
HelloWorld (0) | 2023.07.19 |