Tips and Tricks

We read the input text s, null the sum and run a loop from 0 to s.Length-1 (text length -1). We check each letter s[i] and verify if it is a vowel, and accordingly, add its value to the sum.

Testing in the Judge System

Test your solution here:

results matching ""

    No results matching ""