1. Print on the screen once in alphabetical order all lowercase Latin letters that are included in the specified string.
  2. Count the sum of the numbers found in the string. The '-' symbol before the number is considered a negative number sign. All other characters (except numbers and minus) are considered as separators between numbers.

Help solve pliz!

  • 2
    @CyberFly, According to the rules of the forum, questions should not be limited to solving or completing student assignments. Please clarify what you have done yourself and what did not work out. - Specter

1 answer 1

In the first case, you can probably use List <char>, put the enchantments there in succession from the line after checking that there is still no such character, then sort the sheet and display it sequentially.

In the second case, you can use the function "string" .Split to split the string into numbers, and then get the amount using double.Parse from the received elements of the array.