From d6f94d1ff84dea7183f66b28cefd706b7f862d4c Mon Sep 17 00:00:00 2001 From: zainab Dnaya Date: Fri, 12 Aug 2022 09:56:46 +0100 Subject: [PATCH] docs(printandmiss) : replace Print with return --- subjects/printandmiss/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subjects/printandmiss/README.md b/subjects/printandmiss/README.md index cbc62a21..515a9df5 100644 --- a/subjects/printandmiss/README.md +++ b/subjects/printandmiss/README.md @@ -2,10 +2,10 @@ ### Instructions -Write a function called `PrintAndMiss` that takes a string and an integer and prints a string containing the characters until reaching the integer, then skipping that same number of characters, and repeats until the end of the string. +Write a function called `PrintAndMiss` that takes a string and an integer and return a string containing the characters until reaching the integer, then skipping that same number of characters, and repeats until the end of the string. -- Prints the first half followed by newline `\n`. -- If the string is empty retun `Invalid Output` followed by newline `\n`. +- Return the first half followed by newline `\n`. +- If the string is empty return `Invalid Output` followed by newline `\n`. - If the integer is `0` or it's negative return the string followed by a newline `\n`.