일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
- Material
- dfs
- guide
- parameter
- 파이썬
- Algorithm
- 기초
- Programming
- Unreal Engine 5
- w3school
- C#
- 백준
- dynamic
- Class
- Tutorial
- github
- DP
- 프로그래밍
- python
- 오류
- W3Schools
- String
- c++
- 재귀
- 시작해요 언리얼 2022
- loop
- 문제풀이
- Basic
- UE5
- Unity
- Today
- Total
목록C#/수업내용 (26)
행복한 개구리
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Homework000 { class Program { static void Main(string[] args) { for (int i = 1; i
int count = 0; for (int i = 0; i < 5; i++) { Console.WriteLine("줄넘기를 {0}회 했습니다.", i+1); count++; } Console.WriteLine("총 줄넘기한 횟수 : {0}", count); //줄넘기를 1회 했습니다. //줄넘기를 2회 했습니다. //줄넘기를 3회 했습니다. //줄넘기를 4회 했습니다. //줄넘기를 5회 했습니다. //********************** //총 줄넘기한 횟수 : 5회 int n = 0; while (n
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Homework000 { class Program { static void Main(string[] args) { string fruitsName1 = "ㅎ"; if (fruitsName1 == "빠나나") { Console.WriteLine("빠나나입니다."); } else if (fruitsName1 == "자몽") { Console.WriteLine("자몽입니다."); } else if (fruitsName1 == "딸기") { Console.WriteLine("딸기입니다.")..
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Homework000 { class Program { static void Main(string[] args) { //삼항 연산자 //string result = 1 > 3 ? "사실" : "거짓"; //int result = 1 > 3 ? 100 : 200; //Console.WriteLine(result); int reinforcePercent = 13; Random rand = new Random(); int num = rand.Next(0, 101); int gold = 10..
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Homework000 { class Program { // enum -> int // enum Days //{ // Numbers = 5, // DayType = 3 //} static void Main(string[] args) { //string heroName = "홍길동"; //float heroDamage = 1.5f; //Random critical = new Random(); //int num = critical.Next(0, 101); //bool isAttackSuc..
//int lvl = 1; //string name = "홍길동"; //홍길동님이 레벨업을 했습니다. +1 //증가 연산산자 사용 //홍길동님의 레벨이 2가 되었습니다. //Console.WriteLine("{0}님이 레벨업을 했습니다. +{1}", name, lvl++); //Console.WriteLine("{0}님의 레벨이 {1}가 되었습니다.", name, lvl); //int enhance = 3; //string itemName = "단검"; //+3 단검을 강화합니다. //강화에 실패했습니다. //단검의 강화수치가 +2가 되었습니다. //Console.WriteLine("+{0} {1}을 강화합니다.", enhance, itemName); //Console.WriteLine("강화에 실패했습..