驢子在浴室自己唱歌唱的很爽 都不知道我的痛苦
printf("三個骰子的合%d\n",i);
return 0;
}
y=rand()%6+1;
z=rand()%6+1;
i=x+y+z;
printf("第一個骰子%d\n",x);
printf("第二個骰子%d\n",y);
printf("第三個骰子%d\n",z);
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
int x,y,z,i;
unsigned seed;
srand(time(NULL));
x=rand()%6+1;