Mọi người giúp em với, code của em là:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{
const int MAX=100, MIN=1;
int soRandom, soBanChon;
srand(time(NULL));
soRandom = (rand() % (MAX -MIN + 1)) + MIN;
printf ("ban chon so nao?");
scanf ("%d", soBanChon);
while(soBanChon!=soRandom)
{
if(soBanChon<soRandom)
{
{
printf("Hay chon mot so lon hon di!");
}
}
else
{
{
printf("Ban hay chon mot so nho hon!");
}
}
}
return 0;
}



83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?