You get a number by the input. It's a really big floating point number. You need to check if the number is correct. Let's assume that the correct floating point number is:
- contain a dot symbol
"."(not the comma","); - contain only one dot symbol.
If the number is correct, you need to print a message — correct. In another way, print the message about the first error:
comma detectedmultiple dot symbols
Tip: The strings.Count() method can help you to count a number of dots.