Answers for "how to set placeholders in c#"

C#
3

placeholder syntax c#

string name = "mustafa";
int age = 22;
Console.WriteLine("Hi {0} you are {1} years old.", name, age);
======================OUTPUT===================================
>>  'Hi mustafa you are 22 years old.'
Posted by: Guest on January-08-2021
0

placeholder syntax c#

Console.WriteLine($"Hi {nameInput} you are {ageInteger} years old.");
Posted by: Guest on March-25-2022

C# Answers by Framework

Browse Popular Code Answers by Language