c# code to print profiledata

 c# code to print profile data:

this program is on c# and the source code is given below how to print profile data or personal information.

CODE:

 using System;

namespace profiledata

{

    class Program

    {

        static void Main(string[] args)

        {

            //Personal information

            string Firstname = "Hamza";

            string Lastname = "Khaliq";

            string Fathername = "A.....b";

            string age = "18";

            string Emailid = "Hamzakhaliq@gmail.com";

            string Phonenumber = "+927478645";

            string Education = "University";

            //Dispkay personal information

            Console.WriteLine("___________Personal Information___________");

            Console.WriteLine($"|First Name: {Firstname} \t\t\t|");

            Console.WriteLine($"|Last Name: {Lastname} \t\t\t|");

            Console.WriteLine($"|Father Name: {Fathername}\t\t\t|");

            Console.WriteLine($"|Age: {age}\t\t\t\t|");

            Console.WriteLine($"|Email ID: {Emailid}\t|");

            Console.WriteLine($"|Phone Number: {Phonenumber}\t\t|");

            Console.WriteLine($"|Education: {Education}\t\t\t|");

            Console.WriteLine("-----------------------------------------");

        }

    }

}

OUTPUT:






Comments

Post a Comment

Popular posts from this blog

Calculator in c# using Static Methods

Calculator in c# using Method void method