목록2023/07 (25)
아카이브
using System; namespace HelloWorld { internal class Program { static void Main(string[] args) { int maxmarineHitpoints = 40; int marineAttack = 6; int maxzerglingHitpoints = 35; int zerglingAttack = 5; int zerglingHitpoints = maxzerglingHitpoints - marineAttack; //29 int marineHitpoints = maxmarineHitpoints - zerglingAttack; //35 float zerglingper = ((float)zerglingHitpoints / maxzerglingHitpoin..
using System; namespace HelloWorld { internal class Program { static void Main(string[] args) { string weaponName = "Morning Star"; string weaponType = "Mace"; float damage = 15.0f; int minDamage = 9; int maxDamage = 16; float attackSpeed = 1.20f; Console.WriteLine(weaponName); Console.WriteLine(weaponType); Console.WriteLine(); Console.WriteLine("{0:0.0}", damage); Console.WriteLine("Damage Per..
using System; namespace HelloWorld { internal class Program { static void Main(string[] args) { string weapon = "Dagger"; float damage = 20.2f; int minDamage = 7; int maxDamage = 20; float attackSpeed = 1.50f; Console.WriteLine(weapon); Console.WriteLine(weapon); Console.WriteLine(); Console.WriteLine(damage); Console.WriteLine("Damage Per Second \n\n{0}-{1} Damage", minDamage, maxDamage); Conso..
using System; namespace HelloWorld { internal class Program { static void Main(string[] args) { string weapon = "Axe"; float damage = 3.2f; int minDamage = 2; int maxDamage = 3; float attackSpeed = 1.30f; Console.WriteLine("Hand "+ weapon); Console.WriteLine(weapon); Console.WriteLine(); Console.WriteLine(damage); Console.WriteLine("Damage Per Second \n\n{0}-{1} Damage \n{2:0.00} Attacks per Sec..