Click here to Skip to main content
15,892,746 members
Home / Discussions / C#
   

C#

 
Questioncodes Pin
ajay 201012-Feb-10 7:27
ajay 201012-Feb-10 7:27 
AnswerRe: codes Pin
Wes Aday12-Feb-10 7:46
professionalWes Aday12-Feb-10 7:46 
GeneralRe: codes Pin
ajay 201012-Feb-10 16:41
ajay 201012-Feb-10 16:41 
GeneralRe: codes Pin
Wes Aday12-Feb-10 17:11
professionalWes Aday12-Feb-10 17:11 
GeneralRe: codes Pin
ajay 201012-Feb-10 18:04
ajay 201012-Feb-10 18:04 
GeneralRe: codes Pin
ajay 201012-Feb-10 18:51
ajay 201012-Feb-10 18:51 
AnswerRe: codes Pin
hammerstein0512-Feb-10 8:00
hammerstein0512-Feb-10 8:00 
GeneralRe: codes Pin
ajay 201012-Feb-10 16:43
ajay 201012-Feb-10 16:43 
i have tried it. but i failed. that's why asked for help.i tried in this way.

int[] ajay=new int[3];
int x;
Console.WriteLine("enter the number");]
x=Convert.Int32(Console.Readline());

if ((ajay[0]==2)||(ajay[1]==2)||(ajay[2]==2)||(ajay[3]==2)

{
Console.writeline("valid");
}

else

{
Console.writeline("invalid");
}
GeneralRe: codes Pin
hammerstein0512-Feb-10 18:35
hammerstein0512-Feb-10 18:35 
GeneralRe: codes Pin
ajay 201012-Feb-10 18:46
ajay 201012-Feb-10 18:46 
AnswerRe: codes Pin
OriginalGriff12-Feb-10 8:20
mveOriginalGriff12-Feb-10 8:20 
GeneralRe: codes Pin
Dan Mos12-Feb-10 8:26
Dan Mos12-Feb-10 8:26 
GeneralRe: codes Pin
OriginalGriff12-Feb-10 8:44
mveOriginalGriff12-Feb-10 8:44 
GeneralRe: codes Pin
Dan Mos12-Feb-10 8:52
Dan Mos12-Feb-10 8:52 
GeneralRe: codes Pin
ajay 201012-Feb-10 16:45
ajay 201012-Feb-10 16:45 
AnswerRe: codes Pin
Dr.Walt Fair, PE12-Feb-10 8:29
professionalDr.Walt Fair, PE12-Feb-10 8:29 
GeneralRe: codes Pin
OriginalGriff12-Feb-10 8:45
mveOriginalGriff12-Feb-10 8:45 
GeneralRe: codes Pin
DaveyM6912-Feb-10 12:05
professionalDaveyM6912-Feb-10 12:05 
GeneralRe: codes Pin
OriginalGriff12-Feb-10 22:18
mveOriginalGriff12-Feb-10 22:18 
AnswerRe: codes Pin
Pete O'Hanlon12-Feb-10 9:29
mvePete O'Hanlon12-Feb-10 9:29 
AnswerRe: codes Pin
Luc Pattyn12-Feb-10 9:47
sitebuilderLuc Pattyn12-Feb-10 9:47 
GeneralRe: codes Pin
Wes Aday12-Feb-10 12:19
professionalWes Aday12-Feb-10 12:19 
GeneralRe: codes Pin
Keith Barrow12-Feb-10 12:56
professionalKeith Barrow12-Feb-10 12:56 
AnswerRe: codes Pin
Keith Barrow12-Feb-10 12:54
professionalKeith Barrow12-Feb-10 12:54 
GeneralRe: codes Pin
ajay 201012-Feb-10 16:47
ajay 201012-Feb-10 16:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.