Advertisement
desislava_topuzakova

05. Greeting by Name

Jun 4th, 2022
1,141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _05._Greeting_by_name
  4. {
  5.     internal class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             //1. променлива за името на човека
  10.             //2. отпечатвам: "Hello, <name>!"
  11.             string name = Console.ReadLine();
  12.             Console.WriteLine("Hello, " + name + "!");
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement