Open drguildo opened 7 years ago
I have found other duplicates of the same problem "too much math in tour":
https://github.com/golang/tour/issues/189 https://github.com/golang/tour/issues/193
We need to find a new example, probably computer science / math related, or a fun mini game with the following constraints:
Multiply the input string, X times and return the result?
I'm concerned that using a String builder is too much for the user, and not using it (string concatenation) would be a bad example.
Print the input x times
The exercise would be too simple?
Multiply the two input numbers, without using the * operator. Tip: you can use +
I think it's is the perfect mix between CS and math.
Print out 7 random numbers between 1 and 70. Tip: you can use the Rand.Intn(70) to generate a random number between 0 and 70.
Extra we can add how many numbers to print and the maximum, each country has their own system.
Edit: nvmd, Rand doesn't work in playground :(
Context: https://tour.golang.org/flowcontrol/8
I guess I just had a very poor mathematics education but I don't know calculus, numerical analysis etc. and would really like to "play with functions and loops" in Go without having to play with advanced mathematics at the same time.