Use of OR Operator in C
main()
{
char name;
clrscr();
printf("\n enter 1 letter of your name");
scanf(" %c",&name);
if(name=='r'||name=='R')
{
printf("\n your name is ram");
}
else
printf("\n who are you");
getch();
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment