How to make an if state,ment activate if you put any letter

I'm wondering how to do this? PLease help By 'put' I mean type when using the program
Last edited on
just trying to help.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

char select;

.
.
.
printf("Do you want to enter? [Y]es or [N]o, Press only the Y or N.");
select=getch();

if(select=='Y' || choose=='y'){

/*call a function or a statement*/

}
else if(select=='N' || select=='n'){

/*call a function or a statement*/
}



i hope it help you a bit..
Topic archived. No new replies allowed.