반응형
SMALL
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace diablo_game_item
{
class Program
{
static void Main(string[] args)
{
string axename = "APPRENTICE WAR AXE";
string requirment = "Requires level";
int requireslevel = 8;
string weponCategory = "Magic Two-handed Axe \n";
float attackpoint = 15.0f;
string attackpointdescription = "Damage Per Second\n";
int minDamgae = 14;
int maxDamgae = 16;
float attackperSecond = 1.00f;
int etc = 3;
Console.Write(axename);
Console.Write("{0,42}",requirment);
Console.WriteLine(requireslevel);
Console.WriteLine(weponCategory);
Console.WriteLine("{0:0.0}",attackpoint);
Console.WriteLine(attackpointdescription);
Console.WriteLine("{0}-{1} Damge", minDamgae , maxDamgae);
Console.WriteLine("{0:0.00} Attacks per Second", attackperSecond);
Console.WriteLine("+{0} Random Magic Properties", etc);
}
}
}
결과물
반응형
LIST
'C# > 수업 과제' 카테고리의 다른 글
C# 2023.1.1 아이템 기능 상세 출력 과제 (사이퍼즈 2) (0) | 2023.01.01 |
---|---|
C# 2023.1.1 아이템 기능 상세 출력 과제 (사이퍼즈 1) (0) | 2023.01.01 |
2022.11.1 C# 수업과제 (디아블로 아이템 4) (0) | 2023.01.01 |
2022.1.1 C# 수업과제 (디아블로 아이템 3) (1) | 2023.01.01 |
2022.12.30 C# 수업과제 (디아블로 아이템 2) (0) | 2023.01.01 |