Examples
IF the user enters a 00001 the count would be 4
If the user enters a 0811 the count would be 1
How would i do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The most efficient way is to simply loop through the characters of the string and count each character that is a
0until your read a non0character.I do not use VB.NET much, so this is just some rough VBish pseudo code