C#: Maximum and minimum number from a given string of numbers separated by single space
Write a C# Sharp program to find the maximum and minimum number from a given string of numbers separated by a single space.
Sample string : "3 4 8 9 0 2 1"
Sample Solution:-
C# Sharp Code:
Sample Output:
Original string of numbers: 3 4 8 9 0 2 1 Maximum and minimum number of the said string: 9, 0 Original string of numbers: -2 -1 0 4 10 Maximum and minimum number of the said string: 10, -2
Flowchart :

C# Sharp Code Editor:
Improve this sample solution and post your code through Disqus
Previous: Write a C# Sharp program to find the middle character(s) of a given string. Return the middle character if the length of the string is odd and return two middle characters if the length of the string is even.
Next: Write a C# Sharp program to check whether a given string is an “isograms” or not. Return True or False.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.