Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
C# string interpolation ๐Ÿ’ฒ
Play lesson

C# tutorial for beginners ๐ŸŽต - C# string interpolation ๐Ÿ’ฒ

5.0 (6)
48 learners

What you'll learn

This course includes

  • 4 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

C# string interpolation tutorial example explained #C# #string #interpolation using System; namespace MyFirstProgram { class Program { static void Main(string[] args) { // string interpolation = allows us to insert variables into a string literal // precede a string literal with $ // {} are placeholders String firstName = "Bro"; String lastName = "Code"; int age = 21; Console.WriteLine($"Hello {firstName} {lastName}."); Console.WriteLine($"You are {age,-10} old."); Console.ReadKey(); } } }

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere