#include <stdio.h> #include <time.h>
int main() { int i; srand(time(0)); int n = rand()%10; while(1) { printf("\nInput number beetween 1 and 10\n"); scanf("%d",&i); if (n == i) { printf("\ntrue"); } else { printf("\nnot true"); }
} }