function gcd(a, b)
while a ≠ b
if a > b
a := a − b
else
b := b − a
return aCode language: JavaScript (javascript)
Lets write a program to find the greatest common divisor!
- Go into GitHub
- Create a new project “GCD”
- Click “Create Readme.md”
- In terminal go to ruby workspace, and clone new repository
- Open in VS Code
- Develop and run code
- Commit and save from command line
- (Later we will learn to do git from VS Code)
