C# PROGRAM TO PRINT SMILEY SYMBOL
C# PROGRAM TO PRINT SMILEY / ASCII VALUE OF 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
using System; namespace SmilingFace { class Program { static void Main(string[] args) { int a = 1, i; for (i = 0; i < 250; i++) //prints smiley symbol 250 times Console.Write((char)a); //Console.Write((char)1); Console.ReadKey(); } } } |
Output
Explanation: Here we are just print in the ASCII symbol of 1 which looks like a smiling face. The ASCII symbol of 2 also looks similar to this check here