wes d2a2ba9e15 first commit пре 4 година
..
README.md d2a2ba9e15 first commit пре 4 година
code.cpp d2a2ba9e15 first commit пре 4 година
unitTest.cpp d2a2ba9e15 first commit пре 4 година

README.md

Convert Number to String of Dashes

by Helen Yu tags: loops, strings, numbers

Summary

Create a function that takes a number (from 1 - 60) and returns a corresponding string of hyphens. Examples Go(1) ➞ "-" Go(5) ➞ "-----" Go(3) ➞ "---" Notes You will be provided integers ranging from 1 to 60. Don't forget to return your result as a string. If you get stuck on a challenge, find help in the Resources tab. If you're really stuck, unlock soluti

Instructions

Create a function that takes a number (from 1 - 60) and returns a corresponding string of hyphens.

Examples

Go(1) ➞ "-"

Go(5) ➞ "-----"

Go(3) ➞ "---"

Notes

  • You will be provided integers ranging from 1 to 60.
  • Don't forget to return your result as a string.
  • If you get stuck on a challenge, find help in the Resources tab.
  • If you're really stuck, unlock solutions in the Solutions tab.