Write a C# program to print the following message.

 Write a C# program to print the following message.

C

O M

P U T

E R I S

A W O R L

D O F S

C I E

N C

E


using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;


namespace Pattern

{

    class Program

    {

        static void Main(string[] args)

        {

            Console.WriteLine("C");

            Console.WriteLine("O M");

            Console.WriteLine("P U T");

            Console.WriteLine("E R I S");

            Console.WriteLine("A W O R L");

            Console.WriteLine("D O F S");

            Console.WriteLine("C I E");

            Console.WriteLine("N C");

            Console.WriteLine("E");


        }

    }

}

OUTPUT
C
O M
P U T
E R I S
A W O R L
D O F S
C I E
N C
E

No comments:

Post a Comment