Browse Source

Update README.md

DEV-3181-new-go-exercise-printandmiss
zainab Dnaya 2 years ago committed by GitHub
parent
commit
dd351a16f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      subjects/printandmiss/README.md

16
subjects/printandmiss/README.md

@ -1,4 +1,4 @@
# PrintAndMiss
## PrintAndMiss
### Instructions
@ -17,7 +17,7 @@ func PrintAndMiss(arg string, loop int) string {
```
### Usage
Here is a possible program to test your function:
Here is a possible program to test your function :
```go
package main
@ -27,12 +27,12 @@ import (
)
func main() {
PrintAndMiss("123456789", 3))
PrintAndMiss("abcdefghijklmnopqrstuvwyz", 3))
PrintAndMiss("", 3))
PrintAndMiss("hello you all ! ", 0))
PrintAndMiss("what is your name?", 0))
PrintAndMiss("go Exercise Print and Miss", -5))
fmt.Print(PrintAndMiss("123456789", 3))
fmt.Print(PrintAndMiss("abcdefghijklmnopqrstuvwyz", 3))
fmt.Print(PrintAndMiss("", 3))
fmt.Print(PrintAndMiss("hello you all ! ", 0))
fmt.Print(PrintAndMiss("what is your name?", 0))
fmt.Print(PrintAndMiss("go Exercise Print and Miss", -5))
}
```

Loading…
Cancel
Save