fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string sentence = "Asdafasda";
  8. string UpOrLow = UpperOrLower(sentence);
  9. Console.WriteLine("First char is " + UpOrLow);
  10. }
  11.  
  12. public static string UpperOrLower(string mj)
  13. {
  14. if (char.IsUpper(mj[0]))
  15. {
  16. mj = "upper";
  17. }
  18. else mj = "lower";
  19.  
  20. return mj;
  21. }
  22. }
Success #stdin #stdout 0.03s 23928KB
stdin
Standard input is empty
stdout
First char is upper