#include<stdio.h>
#include<stdio.h>
#include<time.h>()
int main()
{
int a,b,c,i,m,j=0;
printf("c=");
scanf("%d",&c);
unsigned int seed;
seed=(unsigned int)time(0);
srand(seed);
for(i=1;i<=10;i++)
{
a=rand()%11;
b=rand()%11;
m=rand()%20;
printf("%d+%d=%d\n",a,b,m);
if(c==(a+b==m))
{
j++;
}
}
printf("j=%d",j);
return 0;
}