}
#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
int say1,say2,say3;
srand ( time(NULL) );
say1 = rand() %9 + 1;
say2 = rand() % 9 + 1;
printf("%d",say1);
if(say1==say2){
say2 = rand() % 9 + 1;
printf("\n%d",say2);
}
else{
printf("\n%d",say2);
}
say3 = rand() %9 + 1;
if(say1==say3){
say3=rand()%9+1;
printf("\n%d",say3);
}
else if (say2==say3){
say3=rand()%9+1;
printf("\n%d",say3);
}
else{
printf("\n%d",say3);
}
return 0;
}