I am new to c# and need help
Need Help ( I am new to c#)
This is my task :
Write a C# program that prompts the user for input in the following format
enter the console: "word-word-number". “Word” stands for words and “number” stands for one
numerical number. Each part is separated from each other by the separator "-". The program should
Make sure the input consists of exactly two words and a number. If the input is the
If the criterion is not met, the program should return with the error message "Error: The input must be from e»
2 words and 1 number”. Note that you do not need to do this task
Using the split method should be used and that the str. dealt with in school
Methods are sufficient to solve the task.
Valid entries:
Hello World 20-20
I-20 world
Hello
This is my task :
Write a C# program that prompts the user for input in the following format
enter the console: "word-word-number". “Word” stands for words and “number” stands for one
numerical number. Each part is separated from each other by the separator "-". The program should
Make sure the input consists of exactly two words and a number. If the input is the
If the criterion is not met, the program should return with the error message "Error: The input must be from e»
2 words and 1 number”. Note that you do not need to do this task
Using the split method should be used and that the str. dealt with in school
Methods are sufficient to solve the task.
Valid entries:
- Hello World 20th
- I-Am-500
Hello World 20-20
I-20 world
Hello
