Error 1 (gone): if(cISBN[i]<0||>9) /*expected primary-expression before '>' token*/Code:#include <iostream.h>
#include <conio.h>
#include <stdio.h>
#include <string.h>
int main()
{
char cISBN[10];
int i,iLen,iNNF,iISBN[9],iTotal,iCheck;
for(i=0;i<10;i++)
{
cISBN[i]='\0';
}
printf("Enter ISBN ");
gets(cISBN);
iLen=strlen(cISBN);
if(iLen!=9)
{
printf("ISBN length error ");
}
else
{
iNNF=0;
for(i=0;i<iLen&&iNNF==0;i++)
{
if((cISBN[i]<0)||(cISBN[i]>9))
{
printf("ISBN numerical error ");
iNNF=1;
}
else
{
iTotal=0;
iISBN[i]=cISBN[i]-48;
iTotal=iISBN[i]*(i+1);
}
}
}
iCheck=0;
iCheck=iTotal%11;
cout<<(iCheck);
getch();
}
thanks Adak and MK27.
Error 2:
input 013190190
output 7 (should be)
But it gave me "ISBN numerical error 10" or "ISBN length error 10" as output instead, I don't know where the 10 came from, try run it...

