Advertisement
Dianov

Data Types and Variables - Lab (09. Chars to String)

Jul 10th, 2021
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1. using System;
  2.  
  3. namespace CharsToString
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             char char1 = char.Parse(Console.ReadLine());
  10.             char char2 = char.Parse(Console.ReadLine());
  11.             char char3 = char.Parse(Console.ReadLine());
  12.  
  13.             Console.WriteLine($"{char1}{char2}{char3}");
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement