반응형
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 itemname = "고대 주화";
int itemprice = 146;
int itemtime = 5;
int itemhp = 5;
int itemmp = 3;
int itemgold = 2;
int itemgoldall = 70;
Console.Write(itemname);
Console.Write("{0,49}" ,"판매 가격:");
Console.WriteLine(itemprice);
Console.WriteLine("{0}초당 체력 재상 +{1}", itemtime, itemhp);
Console.WriteLine("{0}초당 마나 재상 +{1}", itemtime, itemmp);
Console.WriteLine("고유 지속 효과 - 나눠받기:주변에서 내가 최후의 일격을 가하지 않은 미니언이 스러지면 {0}골드를 획득합니다.\n", itemgold);
Console.WriteLine("나눠받기 - 주운골드: {0}", itemgoldall);
}
}
}
결과물

반응형
LIST
'C# > 수업 과제' 카테고리의 다른 글
| C# 2023.1.1 아이템 기능 상세 출력 과제 (리그 오브 레전드 3) (1) | 2023.01.01 |
|---|---|
| C# 2023.1.1 아이템 기능 상세 출력 과제 (포켓몬 1) (1) | 2023.01.01 |
| C# 2023.1.1 아이템 기능 상세 출력 과제 (리그 오브 레전드 1) (2) | 2023.01.01 |
| C# 2023.1.1 아이템 기능 상세 출력 과제 (사이퍼즈 3) (0) | 2023.01.01 |
| C# 2023.1.1 아이템 기능 상세 출력 과제 (사이퍼즈 2) (0) | 2023.01.01 |