C# if statement to see how many comma's in inputSO I have a string called 'input' and I'm trying to do an if statement regarding to see if the current equals the minus sign and current string index is not the only valid index position for entry is valid and loop should stop.
Also, I'm trying to do an if statement to see if the current character is equal to the decimal point by incrementing a counter to track the number of decimal places. I have no idea on how to go about either one. Please help. By the way I'm a beginner so I'm trying to only use arrays, int, for loop, bool, double, methods, and strings