展开全部#include include include void main() { int n=0;int guess=0;srand((unsigned)time(**));n=rand()%999+1;while(1) { printf("please guess the price:");scanf("%d",&guess);if(guess=n) { printf("congratulations!\nyou are right!\n");break;} else if(guess) { printf("the price ** higher than you guess!\n");} else { printf("the price ** lower than you guess!\n");} } } 20210311