What function will input a string which could either contain numbers or the multiplication of two numbers using the 'x'
character as an operator?
For example:
- If the input is
"6 x 11"
then the output should be66
. - If the input is
"78
" then the output should be78
.
Well, you could use several System.String methods to accomplish this. What have you tried?
One option:
Of course, this ignores any input validation.