From 4ae7091b8e1db247daae110ba189ac5b9768bce3 Mon Sep 17 00:00:00 2001 From: Hamza elkhatri <40549481+Hamzaelkhatri@users.noreply.github.com> Date: Fri, 17 Jun 2022 21:15:47 +0100 Subject: [PATCH] Update README.md --- subjects/printrange/README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/subjects/printrange/README.md b/subjects/printrange/README.md index afbe0041..dc36dcf5 100644 --- a/subjects/printrange/README.md +++ b/subjects/printrange/README.md @@ -2,7 +2,7 @@ ### instructions -- Write a function named `printRange` that takes a start and end number and prints all the numbers in that range. +- Write a function named `PrintRange` that takes a start and end number and prints all the numbers in that range. - If the start number is greater than the end number, print the numbers in descending order. - If the start number is less than the end number, print the numbers in ascending order. - If the number is greater than `9` print just to `9` @@ -12,7 +12,7 @@ ### Function ```go -func printRange(start, end int) { +func PrintRange(start, end int) { // Your code here } ``` @@ -24,12 +24,12 @@ import "piscine" import "fmt" func main() { - piscine.printRange(1, 10) - piscine.printRange(10, 1) - piscine.printRange(1, 1) - piscine.printRange(10, 10) - piscine.printRange(0, 9) - piscine.printRange(-1, -10) + piscine.PrintRange(1, 10) + piscine.PrintRange(10, 1) + piscine.PrintRange(1, 1) + piscine.PrintRange(10, 10) + piscine.PrintRange(0, 9) + piscine.PrintRange(-1, -10) } ```