Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STEP 2 - 아이스크림 그리기 #1001

Open
wants to merge 1 commit into
base: ss_20_SoPa
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion CodeStarterCamp_Week1/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,14 @@

import Foundation

print("Hello, World!")
let iceCreamBody = "***********"
let iceCreamStick = " | | "

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

막대기 뒤의 공백은 불필요해 보입니다!
띄어쓰기또한 메모리를 잡아먹기에 불필요한 공백또한 지워주는게 좋아요 :)


for _ in 1...8{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

모든 부분에서 중괄호의 앞은 한 번 띄어쓰기가 컨벤션입니다!

print("\(iceCreamBody)")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

문자열 보간법 잘 활용해주셨군요 👍

}

for _ in 1...4{
print("\(iceCreamStick)")
}

Binary file added 순서도.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.