Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CharsToString
- {
- class Program
- {
- static void Main(string[] args)
- {
- char one = char.Parse(Console.ReadLine());
- char two = char.Parse(Console.ReadLine());
- char three = char.Parse(Console.ReadLine());
- Console.WriteLine($"{one}{two}{three}");
- }
- }
- }
- Или:
- using System;
- namespace CharsToString
- {
- class Program
- {
- static void Main(string[] args)
- {
- string one = Console.ReadLine();
- string two = Console.ReadLine();
- string three = Console.ReadLine();
- Console.WriteLine($"{one}{two}{three} ");
- }
- }
- }
- Или тарикатския начин:)
- using System;
- namespace CharsToString
- {
- class Program
- {
- static void Main()
- {
- Console.WriteLine(Console.ReadLine() + Console.ReadLine() + Console.ReadLine());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement