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

C#

 
AnswerRe: baseclass and a interface. Pin
rhuiden12-Feb-10 10:24
rhuiden12-Feb-10 10:24 
GeneralRe: baseclass and a interface. Pin
Jarno Burger14-Feb-10 13:33
Jarno Burger14-Feb-10 13:33 
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 
Thanks dear..
i solved the problem, here it is....

int[] ajay=new int[4];
ajay[0]=2;
ajay[1]=2;
ajay[2]=2;
ajay[3]=2;

int x;

Console.WriteLine("enter the number");
x=Convert.ToInt32(Console.ReadLine());
x=x+1;



if (((x>4000)&&(x<8000))&&((ajay[0]==2)||(ajay[1]==2)||(ajay[2]==2)||(ajay[3]==2)))


{
Console.WriteLine("valid");
}


else

{
Console.WriteLine("invalid");
}

Anyway i didn't understand the usage of "contains"...i tried a lot..its not available...iam using .net 2003...

Anyway thanks for the information you provided in the previous e-mail,it helped me a lot to get the desired result...now i am happy...
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 
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 

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.