본문 바로가기

비전공자 개발일기

검색하기
비전공자 개발일기
프로필사진 HiroDaegu

  • Programming (565)
    • SWIFT (73)
      • (SWIFT || Xcode)Error (9)
    • HTML _CSS (226)
    • Javascript (176)
    • PHP (13)
    • React & React Native (16)
    • Markdown (1)
    • DB(MySQL) (3)
    • JQuery (39)
    • Typescript (4)
    • 기타 (14)
Guestbook
250x250
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
일 월 화 수 목 금 토
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
Tags
  • image
  • 애니메이션
  • keyframes
  • jQuery
  • Animation
  • javascript
  • SWIFT
  • IOS
  • 비전공 개발자
  • ipad
  • hover
  • 풀스택
  • xcode
  • react
  • 개발자
  • effect
  • 백엔드
  • 프론트엔드
  • 비전공자
  • MAC
  • button
  • front-end
  • html5
  • HTML
  • iPhone
  • iOS 개발자
  • CSS
  • 자바스크립트
  • css3
  • php
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록업다운 (1)

비전공자 개발일기

UP and DOWN Number Game

import Foundation var comChoice = Int.random(in: 1...100) var myChoice: Int = 0 print("컴퓨터가 선택한 숫자 맞추기") while true { var myInput = readLine() print("당신의 입력한 숫자: \(myInput!)") if let input = myInput { if let num = Int(input) { myChoice = num } } if(comChoice > myChoice) { print("UP") myChoice = 0 } else if (comChoice < myChoice) { print("DOWN") myChoice = 0 } else { print("BINGO") break } }

SWIFT 2022. 11. 5. 00:25
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바