Use what it gives back · Sử dụng những gì nó trả về
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.
Sử dụng những gì nó trả về
double đã được viết sẵn và trả về một số. Gọi nó với 21 và lưu câu trả lời vào answer.
return trao một giá trị lại cho người đã gọi hàm. Giá trị đó không được in ra — bạn bắt lấy nó với =, đúng như bất kỳ kết quả nào khác.
double is written for you and returns a number. Call it with 21 and store the answer in answer. · double đã được viết sẵn và trả về một số. Gọi nó với 21 và lưu câu trả lời vào answer.
Click Run to see the output here. · Nhấn Chạy để xem kết quả ở đây.