c# program to print love symbol
using System; namespace LoveSymbol { class Program { static void Main(string[] args) { int a = 3, i; for (i = 0; i < 250; i++) //prints love symbol 250 times Console.Write((char)a); //Console.Write((char)3); Console.ReadKey(); } } }
Explanation : most of the c# learners shock by seeing this.Actually here we are printing the ASCII value of 3 . Which gives a love symbol.
you can also print directly by writing the following code.
Console.Write((char)3);
for c program to print love symbol click here
Output:

wow ur great sameer .............!
ReplyDeleteGreat Explanation..Very good Example..
ReplyDeleteOnline CSharp
Training
C Sharp Training
Online C# Training from India
C Sharp Training in Chennai
C# Training
Online Dot Net Training
.net online Training
ASP NET Training
Wow its really amazing information.
ReplyDeletebest c sharp training in chennai
Nice and helpful article....
ReplyDeleteLearn C with examples
Basic C programming examples
C pattern programming examples
C Arrays examples
Loops in C examples
if-else in C with examples
Strings in C with examples
I liked how everything was explained step by step. The article is detailed but still easy to follow. Great work on this content.service now admin course
ReplyDeleteGreat post! MuleSoft course helps learners build strong integration skills with hands-on training in APIs, connectivity, and enterprise solutions.mulesoft course
ReplyDelete