# contains "stdio.h"
# contains "stdlib.h"
# define SRT rand
void main()
{
int a,sjb[3]={0, 1,2 };
int I;
In your hands;
Printf("0 stone \ n ");
Printf(" 1- scissors \ n ");
printf(" 2-cloth \ n ");
scanf("%d ",& ampyour hand);
a = rand()% 3;
printf("%d\n ",a);
for(I = 0; I<2; i++)
{ if(yourhand==sjb[i])
{if(sjb[i]==sjb[a])
printf(" tie \ n ");
else if(sjb[i+ 1]==sjb[a])
printf(" Victory \ n ");
else printf(" failed \ n ");
}
}
if(yourhand==sjb[2])
{
{if(sjb[i]==sjb[a])
printf(" tie \ n ");
else if(sjb[i-2]==sjb[a])
printf(" Victory \ n ");
else printf(" failed \ n ");
}
}
}