original post

C# PROGRAM TO PRINT SMILEY / ASCII VALUE OF 1

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

Leave a Reply

Your email address will not be published. Required fields are marked *