|  | 
|  | 
| back to board | Why Compilation error? Please, have a look at my source!!! Here is my source!
 #include <stdio.h>
 #include <io.h>
 int main(){
 char ch;
 int sumall=0;
 while (!feof(stdin)) {scanf("%c",&ch); if (feof(stdin))
 break;sumall+=ch-48;}
 //printf("s=%d",sumall);
 printf("%d\n",(sumall%3==0)+1);
 if (sumall%3) printf("%d",sumall%3);
 return 0;
 }
 
 Thanks!!!!
don't #include <io.h> > Here is my source!>
 > #include <stdio.h>
 > #include <io.h>
 > int main(){
 > char ch;
 > int sumall=0;
 > while (!feof(stdin)) {scanf("%c",&ch); if (feof(stdin))
 > break;sumall+=ch-48;}
 > //printf("s=%d",sumall);
 > printf("%d\n",(sumall%3==0)+1);
 > if (sumall%3) printf("%d",sumall%3);
 > return 0;
 > }
 >
 > Thanks!!!!
 | 
 | 
|