C#/수업 과제
2022.12.30 C# 수업과제 (디아블로 아이템 1)
Bueong_E
2022. 12. 30. 17:34
반응형
SMALL
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
string bracersName = "Ashnagarr's Blood Bracer";
string bracersLevel = "Legendary Bracers";
int minBracersArmor = 16;
int maxBracersArmor = 19;
string category = "Armor";
string mainFunction = "Primary";
float minMainfunction = 4.5f;
float maxMainfunction = 6.0f;
string secondFunction = "Secondary";
int avgsecondFunction = 85;
int minsecondFunction = 75;
int maxsecondFunction = 100;
int choicesecondFunction = 3;
int minchoicesecondFunction = 416;
int maxchoicesecondFunction = 500;
int thirdsecondFunction = 3;
Console.WriteLine(bracersName);
Console.WriteLine(bracersLevel);
Console.WriteLine("{0} - {1}", minBracersArmor, maxBracersArmor);
Console.WriteLine(category);
Console.WriteLine(mainFunction);
Console.WriteLine("*Critical Hit Chance Increased by[{0} - {1:0.0}] %", minMainfunction, maxMainfunction);
Console.WriteLine(secondFunction);
Console.WriteLine(
"*Increases the potency of your shields by {0}%. (Wizard Only) [{1} - {2}]%", avgsecondFunction, minsecondFunction, maxsecondFunction
);
Console.WriteLine("*One of {0} Magic Properties (varies)", choicesecondFunction);
Console.WriteLine("\t*+[{0}- {1}] Dexterity", minchoicesecondFunction, maxchoicesecondFunction);
Console.WriteLine("\t*+[{0}- {1}] Intelligence", minchoicesecondFunction, maxchoicesecondFunction);
Console.WriteLine("\t*+[{0}- {1}] Strength", minchoicesecondFunction, maxchoicesecondFunction);
Console.WriteLine("*+3 Random Magic Properties", thirdsecondFunction);
Console.WriteLine("Account Bound");
}
}
}
결과물
반응형
LIST