#define _CRT_SECURE_NO_WARNINGS#include <stdio.h> #include <stdlib.h> #include <time.h>int main () { printf (" Welcome to the guessing numbers game! \n "), printf (" \ n "), printf (" ************************\n "); printf (" \ n "); printf (" * * * 1-<start ******\n "), printf (" ******** 0-<exit *******\n "); printf (" \ n "); printf (" ************************\n "); int input = 1; while (input) { printf ("Please select->:"); &NBSP;&NBSP;SCANF ("%d", &input); switch (input ) { case 1: { int n; int m; srand ((Unsigned int) Time (NULL)); n = rand () % 101; while (1)   { printf ("Please enter a number between 0-100:"); &NBSP;SCANF ("%d", &m); if (m > n) { printf ("You guessed big!" \ n "); } else if (M < n) { printf ("You guessed small!" \ n "); } else { printf ("You guessed right!" \ n "); break; } } } default: { printf ("Game Quit! \ n "); break; } } } system ("pause"); return 0;}
C language Realization, guess the digital intelligence small game