for(int i=0; i<k; i++)
bool matchName = matches (contact[i]. name, key);
bool matchNum = matches (contact[i].number, key);
if (matchName || matchNumber)
printf("%s%s\n", contact[i].name, contact[i].number);
// here I want to implement ELSE, so that in case nothing is found, program simply prints "Not found", but without looping. The code I put is part of a phonebook program, which looks for numbers and names. Simply, after IF I would like to implement ELSE with printing: "printf ("Not found.")" but without looping for a size of "k" in FOR loop.
Thanks for advise in advance!