반응형
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 = " ● 대천사의 치팡이의 업그레이드 아이템\n";
int itemint = 65;
int itemmp = 860;
int itemmpper = 5;
int itemintper = 100;
float itemintper2 = 2.5f;
int itemstack = 360;
Console.WriteLine(itemname);
Console.WriteLine("● 주문력 +{0}, 마나 +{1}\n",itemint, itemmp);
Console.WriteLine("● 경탄: 주문력을 추가 마나의{0}%만큼 얻습니다.\n", itemmpper);
Console.WriteLine("● 창공:최대 마나가 {0}%(+주문력 {1}당 {2}%)증가합니다.\n", itemmpper, itemintper, itemintper2);
Console.WriteLine("● 조합식: 대천사의 지팡이(여신의 눈물)의 스택을 {0} 쌓으면 자동 업그레이드.\n", itemstack);
}
}
}
결과물

특수문자또한 문자열에 넣어도 문제없이 잘 출력되더라....는 교훈
반응형
LIST
'C# > 수업 과제' 카테고리의 다른 글
| C# 2023.1.1 아이템 기능 상세 출력 과제 (파이널 판타지14 1) (0) | 2023.01.01 |
|---|---|
| C# 2023.1.1 아이템 기능 상세 출력 과제 (리니지 1) (0) | 2023.01.01 |
| C# 2023.1.1 아이템 기능 상세 출력 과제 (포켓몬 1) (1) | 2023.01.01 |
| C# 2023.1.1 아이템 기능 상세 출력 과제 (리그 오브 레전드 2) (0) | 2023.01.01 |
| C# 2023.1.1 아이템 기능 상세 출력 과제 (리그 오브 레전드 1) (2) | 2023.01.01 |