On the first lesson his task was to write a simple program. The program was supposed to do the following: in the given string, consisting if uppercase and lowercase Latin letters, it: deletes all the vowels, inserts a character "." before each consonant, replaces all uppercase consonants...
When you run the program, the output will be: z is consonant In the above program, instead of using a long if condition, we replace it with a when statement. when is similar to switch case in Java. But, instead of just a statement, when is also an expression, i.e. we can return...