.NET Practical Slip 29 Q A

Answer:

Source Code

using System;

namespace IndividualCharacter
{
    class Program
    {
        static void Main(string[] args)
        {
            // Ask the user for a string input
            Console.Write("Enter a string: ");
            string input = Console.ReadLine();

            // Display each character of the string separately
            Console.WriteLine("Individual characters from the string:");
            foreach (char ch in input)
            {
                Console.WriteLine(ch);
            }
            Console.ReadLine();
        }
    }
}

Helpful Links

Spread the love

Leave a Comment

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

Scroll to Top