분류 전체보기 188

1/2 늑대1

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study01 { class Program { static void Main(string[] args) { int hp = 10; int maxHp = 10; int damage = 5; Console.WriteLine("영웅의 체력은 {0}/{1} 입니다.", hp, maxHp); Console.WriteLine("늑대의 공격력은 {0} 입니다.", damage); Console.WriteLine("늑대에게 공격({0})을 받았습니다.", damage); hp = hp - dama..

c#/수업 내용 2023.01.02