c# string interpolation

66

c# string interpolation -

var apples = 4;
var bananas = 3;

Console.WriteLine($"I have {apples} apples");
Console.WriteLine($"I have {apples + bananas} fruits");

Comments

Submit
0 Comments