What's The Difference?
This is a simple project just for practice running
and submitting a Go program.
Write a program which requests an integer, and declares two
astounding mathmatical facts about it: What you can add to 7 to get
your input number, and what you can subtract 42 from to yield your
input number. Like this:
[tom@tomslap asst]$ go run from.go
Please enter an integer: 28
Did you know that 7 + 21 = 28?
And that 70 - 42 also equals 28?
[tom@tomslap asst]$ go run from.go
Please enter an integer: 3
Did you know that 7 + -4 = 3?
And that 45 - 42 also equals 3?
[tom@tomslap asst]$ go run from.go
Please enter an integer: -652
Did you know that 7 + -659 = -652?
And that -610 - 42 also equals -652?
Store your program in a file with extension .go.
When it works,
submit over the web
here.