Отговори:

1: 0 4 3
2: 6 2
3: 1 1 0 4
4: 2 1 1
5: 4 5
6: 3 4 0
7: 2 3
8:2 2
9: 3 0
10: 5 7
13: 2 2 4.40
11:1 2 4 4.40
12: препълване 10 -1
13: 3 5 5.40
14: 2 5
15: ddfttgvm v
2.
#include <stdio.h>
#include <string.h>
int avrg(FILE *);
void dig6(FILE *);
int main(){
    FILE *f;
    if( !(f=fopen("C:\\Test\\Sign.txt","rt"))){
        printf("the file does not exist\n");
        return 1;
    }
    if(avrg(f)) printf("wrong file name \n");
    rewind(f);
    dig6(f);
    fclose(f);
    return 0;
}
int avrg(FILE *inp){
    FILE *f;
    char buf[50];
    int next,n=0;
    double avrg=0;
    printf("file for the result? ");
    fgets(buf,50,stdin);
    buf[strlen(buf)-1]='\0';
    if(!(f=fopen(buf,"wt"))) return 1;
   for(;;){
       if( fscanf(inp,"%d",&next)== EOF) break;
       if(next >0){
          avrg+=next; n++;
       }
    }
                     или   
for(;fscanf(inp,"%d",&next)!= EOF;){
       if(next >0){
          avrg+=next; n++;
       }
    }
      if (n>0){
       printf("the average of pos numbers is: %6.2f\n",avrg/n);
       fprintf(f,"the average of pos numbers is: %6.2f\n",avrg/n);
    }
    else {
       printf("there is no positive numbers\n");
       fprintf(f,"there is no positive numbers\n");
    }
    fclose (f);
    return 0;
}
void dig6(FILE *inp){
     int num=0,next;
   for(;;){
        if((next=fgetc(inp))== EOF) break;
        if (next == '6') num++;
   }
             или   
   for(;next=fgetc(inp))!= EOF;){
        if (next == '6') num++;
   }
    printf("found %d occurences of the digit 6",num);
}

3.
m=y;
do{
    switch(a+b-c){
         case 0:
         case 1: k=17;
         case 7: m+=b; break;
         case 3: m=a-c;
         case 2: m+=b;
         default: m=a;
     }
     g[m]=m%i;
     m--
}while (!(m<b));