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

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

1807


maximizing the main window

1645


code to create a new window

1760


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

1719


how to pass data between pages using Cookies

1868






code to set the main window's size

1717


Code to Block submission of form by pressing Enter Key

2098


How to encode and decode URL strings?

1804


how to create a Draggable element

1976


Create a ViewState Property?

2299


code to positioning of window in certain dimensions

1680


how to create Expandable and Collapsible Menus

2666


code to detect versions of different browsers like internet explorer, netscape, mozilla, opera etc

1749


write a code to generate pseudorandom numbes

1805


program to show a progress bar

2138