Challenge
The challenge is simple: print a snake.
You will get the length of the snake as input.
A snake of length 2 looks like this:
==(:)-
A snake of length 7 looks like this:
=======(:)-
In other words, the length of a snake is how many equal signs are before the head.
Usage
Let's say I made a C++ implementation and compiled it to ./getsnake
.
I could run it like so:
$ ./getsnake 10
==========(:)-
Clarifications
- Standard loopholes are disallowed.
- You can get input and output in any acceptable way.
- You can assume all inputs given are positive integers.
- You may write a function instead of a regular program.