I want a program code i.e.
A user enter his/her name on console and it will show his/her name as output in the form of Stars.
like user name is Parveen.
Outpur:-
Parveen becone in the form of stars?????
******
* *
* *
******
*
*
*
*
*
Its only P.
Like this;

Vasanth NatarajanRank #3,352 · 429 reputationPosted Aug 31, 2016, 3:39 AM EDT
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace testingfornew
{
class Program
{
static void Main(string[] args)
{
string strname = "papa";
strname = strname.ToUpper();
int intlength;
intlength = strname.Length;
for (int i = 0; i < intlength; i++)
{
char chrletter = strname[i];
if (chrletter == 'P')
{
Console.WriteLine("*****\n");
Console.WriteLine("* *\n");
Console.WriteLine("*****\n");
Console.WriteLine("* \n");
Console.WriteLine("* ");
Console.WriteLine("\n");
}
if (chrletter == 'A')
{
Console.WriteLine("*****\n");
Console.WriteLine("* *\n");
Console.WriteLine("*****\n");
Console.WriteLine("* *\n");
Console.WriteLine("* *");
Console.WriteLine("\n");
}
}
Console.ReadLine();
}
}
}
Nitin SontakkeRank #264 · 9.6K reputationPosted Aug 31, 2016, 12:22 AM EDT
Vishal JadavRank #1,692 · 901 reputationPosted Aug 31, 2016, 6:19 AM EDT
Tapan PatelRank #614 · 3.9K reputationPosted Aug 31, 2016, 7:06 AM EDT
Meanwhile, if you can do this -
Nitin SontakkeRank #264 · 9.6K reputationPosted Sep 1, 2016, 2:43 AM EDT