(Consonants are defined as any letter in the English alphabet that is not a vowel (a, e, i, o, u). The count should be case-insensitive and exclude any non-alphabetic characters)
When input string and choose an option
Enter a string (str): Hello world
Choose an option: Consonant characters
Result:
EXECUTE
String str
Result
Hello
Length of string 5
=>
After clicking the "EXECUTE" button
Enter a string (str): Hello world
Choose an option: Consonant characters
Result:
7
Option
EXECUTE
String str
Hello
Option
Result
5
Length of string
Hello world Consonant characters 7
Note:
If str, option, result are not displayed after pressing the "EXECUTE" button, 0.5 points will be deducted.
If every time you press the "EXECUTE" button with the required data, you only replace the existing data line on the table, 0.5 points will be deducted.
+ 100%
Zoom
Close