Exercise: rectangular
Write a program that accepts two numbers on the command line (the width and the length of a rectangular) and prints the area.
For example:
$ go run rectangular.go 3 4
12
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
Write a program that accepts two numbers on the command line (the width and the length of a rectangular) and prints the area.
For example:
$ go run rectangular.go 3 4
12