Julia as a calculator
Writing your code into a script instead of the console means you will have it saved for later. This allows you to rerun the code, modify it and run it with different inputs, or check for any mistakes in the code you used earlier.
Here you are writing a script to keep track of your weekly hours worked. You have been adding to it every day to get a total.
이 연습은 강의의 일부입니다
Introduction to Julia
연습 안내
- Add the comment
Hours worked this weekto line 2 of the script. - Add all the numbers
39,37.5,40, and42together to calculate your total hours worked.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Add the comment on the line below
____
# Add the hours worked
____