0
Debugging
package main import "fmt" func main() { fmt.println("1,2,3") fmt.println("One\nTwo\nThree") } How do I print out this digits in words Nd on a new line What is there tht am doing wrong
9 Réponses
+ 1
&A͢J - S͟o͟l͟o͟H͟e͟l͟p͟e͟r͟ That is the same thing i did
+ 1
P should be uppercase in println
fmt.Println("1,2,3") fmt.Println("One\nTwo\nThree")
+ 1
For that, you need to use input variable inside a loop and run it three times.
You can use if-else statement or switch statement to check each numbers one by one.
+ 1
Ejeh Wayne you too
You tried anything using my comment?
0
\n is used to print in new line.
0
Simba The upper case worked but its not enough code
this is the problem i was asked to solve and its still not working
You are making a robot that can speak numbers.
Your robot should take 3 numbers in the range of 0-10 as input and output the corresponding texts in English.
Sample Input:
8
0
5
Sample Output:
Eight
Zero
Five
0
Simba show me
0
Simba i tried it and it did not work,...
maybe i just did not understand it, cause it did not work
0
Ejeh Wayne
Hint-
1 -Make a function with a parameter and write switch case there.
2 - call that function 3 times and pass different inputs which will print corresponding results