Advertisement
spasnikolov131

Untitled

Feb 4th, 2023
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Greater_of_Two_Values2
  4. {
  5. internal class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9.  
  10.  
  11. string value1 = Console.ReadLine();
  12. string value2 = Console.ReadLine();
  13. string value3 = Console.ReadLine();
  14. GetMax(value1, value2, value3);
  15. }
  16. static void GetMax(string value1, string value2, string value3)
  17. {
  18.  
  19. }
  20. static void GetMax(string value1, int value2, int value3)
  21. {
  22. if (value1 == "int")
  23. {
  24. if (Convert.ToInt16(value2) > Convert.ToInt16(value3))
  25. {
  26. Console.WriteLine(value2);
  27. }
  28. else
  29. {
  30. Console.WriteLine(value3);
  31. }
  32. }
  33. }
  34. static void GetMax(string value1, char value2, char value3)
  35. {
  36.  
  37. }
  38. }
  39. }
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement