250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- CSS
- Animation
- 비전공 개발자
- css3
- jQuery
- iPhone
- image
- HTML
- button
- javascript
- ipad
- MAC
- php
- 비전공자
- html5
- iOS 개발자
- keyframes
- 백엔드
- IOS
- xcode
- front-end
- effect
- SWIFT
- hover
- 풀스택
- 프론트엔드
- 개발자
- 자바스크립트
- react
- 애니메이션
Archives
- Today
- Total
목록업다운 (1)
비전공자 개발일기
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cie4A2/btrQrsMb3gh/YKnsSzkNHnumVDL2Qe5DWK/img.png)
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