#include <stdio.h>
#include <stdlib.h>
#include <time.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
int x = 1;
srand(time(0));
int y = rand();
int a = scanf("number");
int z = y%100;
printf("%d",z);
if(z = a){
printf("right%d",x);
}
while(z =! a){
printf("%d",a);
z = a;
x++;
}
}
运行后就是满篇的0,不知道为什么