Skip to content · ⁨본문 바로가기⁩

Use what it gives back · ⁨돌아오는 값을 사용하십시오⁩

English

Use what it gives back

double is written for you and returns a number. Call it with 21 and store the answer in answer.

return hands a value back to whoever called the function. That value is not printed — you catch it with =, exactly like any other result.

한국어

반환값 사용하기

double는 작성되어 있으며 숫자를 반환합니다. 21을 전달하여 답변을 answer에 저장하세요.

return는 함수를 호출한 쪽에 값을 반환합니다. 그 값은printed되지 않으므로, 다른 결과처럼 =으로 받아내야 합니다.

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP