string c = Console.ReadLine(); for (int i = c.Length-1; i >=0; i--) { if(Convert.ToChar(c[i])==32) c= c.Remove(i, 1); } Console.WriteLine(c);
string c = Console.ReadLine(); Console.WriteLine(c.Replace(" ", ""));