fork(4) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string a = "";
  8. while( ( a = Console.ReadLine() ) != null )
  9. {
  10. int dl = a.Length;
  11. string wynik = "";
  12. int b = 1;
  13. for( int i=0; i<dl; i++ )
  14. {
  15. if( (int)a[i] == 32 ) b=1;
  16. else if( (int)a[i] != 32 && b == 1 )
  17. {
  18. wynik += a[i].ToString().ToUpper();
  19. b = 0;
  20. }
  21. else if( (int)a[i] != 32 && b == 0 ) wynik += a[i];
  22. }
  23. Console.WriteLine( wynik );
  24. }
  25. }
  26. }
Success #stdin #stdout 0.02s 15804KB
stdin
Dzisiaj jest czwartek,
A jutro bedzie piatek.
stdout
DzisiajJestCzwartek,
AJutroBedziePiatek.