#include <stdio.h>
#include <stdlib.h>
#include <time.h>

void main()
{
char fruits[4][7]={"banana","apple","orange"};
int random,random2,random3;
int low=0,high=2;
srand(time(NULL));					//seed randomness

random = rand() % (high-low+1)+low;	//generate random no
printf("%s ",fruits[random]);	//print random no

random2 = rand() % (high-low+1)+low;	//generate random no
printf("%s ",fruits[random2]);				//print random no

random3 = rand() % (high-low+1)+low;	//generate random no
printf("%s",fruits[random3]);				//print random no

if((random==random2)&&(random2==random3))
{
system("color 2c");
printf("Winner");
}
else
{
printf("Sorry play again");
}

}