to jt and neo thanks guys for the help...im almost near with solution...actually its my midterm exam. its the only one that i left unsolved the rest are doing fine...best regards to both of you guys...
my problem states that "student identification numbers are four-digit integers. input should terminate when i type 0 for the student identification number" sorry guys I am having a hard time wth the problem need help..
while (idnum=4)
{
printf("Input ID number");
scanf("%d", &idnum);
if (idnum = 0)
break;
}
printf("ID number %d", idnum);
any correction from my while statement coz i can't get the exact 4 digit integer for the id number thanks in advance for your help