SHARE
TWEET

Untitled

Dofik77 Sep 11th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp4
  8. {
  9.     class Program
  10.     {
  11.         public static void Metod(string text)
  12.         {
  13.            
  14.             int a = text.Length;
  15.             string Ntext = text.Substring(a / 2, a / 2);
  16.             Ntext = Ntext.Replace(" ", string.Empty);
  17.             Console.WriteLine(Ntext);
  18.         }
  19.  
  20.        
  21.  
  22.         public static void Main(string[] args)
  23.         {
  24.             string text;
  25.             text = Console.ReadLine();
  26.             Metod(text);
  27.             Console.ReadKey();
  28.         }
  29.     }
  30. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top