program that will accept any name and will be stored in an
array

Answer Posted / manish kumar

this code is in c#
//i will store a name of 4 letters

string []name= string[5];
Console.WriteLine("Enter your name plz only 4 words");
for(int i=0;i<4;i++)
{
name[i]=Console.ReadLine();
}

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

determine which Element received an Event

2080


how to create a Draggable element

2121


how to convert between arrays and strings

2299


Reading which Non-Character Key was pressed

1887


create Drop-Down Navigation Menus

1878


maximizing the main window

1821


code to detect availability of cookies

1939


sample code to auto focusing the first field in a form

2194


Create a Menu that can be activated while clicking on Right Mouse button

1880


how to transform XML Data into HTML

2087


How to block double clicks

1823


how to copy form data between different pages

1942


Create a ViewState Property?

2445


advance the focus to next consecutive fields when Enter Key is pressed

2001


how to Scroll a DIV content

2337