please help me fix these problem,,,,
when i'm running the program it exits emediately
main()/*Start of the function main???*/
{
do{/*do while loop initialization*/
print();
scanf("%c",&choice1);
switch(choice1){
case 'A':
case 'a':
addContact();
break;
case 'F':
case 'f':
search(contacts);
break;
case 'v':
case 'V':
list();
break;
case 'e':
case 'E':
edit(contacts);
break;
default:
print();
}
printf("");
printf("Do you want to enter another contact?Y/N\n");/*condition question of loop*/
scanf("%c",&choice2);
if (choice2 == 'y' || 'Y'){
choice2 == 'y';
}else{
break;
}
}while(choice2 == 'Y' || choice2 == 'y');
}/*end of function main()*/