CodeDiary

CodeDiary

반응형
  • 분류 전체보기 (15)
    • 유니티 (3)
    • C# (8)
      • 잡 (0)
      • 연습문제 (1)
      • 기록 보관 (3)
    • Json (0)
    • Arduino (3)
  • 홈
  • 태그
  • 방명록
RSS 피드
로그인
로그아웃 글쓰기 관리

CodeDiary

컨텐츠 검색

태그

atlas 적용 안됨 C# SmoothDamp atlas 오류 유니티이동 유니티 Raycast WIFI 연결안됨 draw call RayCast2D string보간 esp32 StringFormat Lerp 날짜변환 물체 감지 unity esp32 오류 분기문 문자열 보간

최근글

댓글

공지사항

  • 공지 03/24

아카이브

분기문(1)

  • 분기문 짝수홀수

    using System; using static System.Console; namespace Hello { class MainApp { static void Main(string[] args) { WriteLine("숫자를 입력해주세요"); string num = ReadLine(); int number = int.Parse(num); if(number > 0) { if (number % 2 == 0) { WriteLine("짝수"); } else { WriteLine("홀수"); } } else { WriteLine("0이거나 , 음수"); } } } }

    2023.03.07
이전
1
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바