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

program to bring a window to the front

1559


how to create a Custom Scrollbar

2045


write a code that user can choose/alter Body Text Size

1602


How to encode and decode URL strings?

1784


code to set the main window's size

1701






how to pass data between pages using Cookies

1842


how to get the User's Time of Day

1663


how to copy form data between different pages

1672


code to create a new window

1752


write a code to generate pseudorandom numbes

1778


sample code to auto focusing the first field in a form

2026


how to transform XML Data into HTML

1892


Code to Block submission of form by pressing Enter Key

2062


code to get the coordinates of a Click Event

1739


how to create a Draggable element

1966