Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <time.h>
- #include <stdlib.h>
- void main(){
- srand(time(NULL));
- int n = rand()%100+1;
- int m = 0;
- scanf("%d",&m);
- while(m != n){
- if(n > m)
- printf("%s",">\n");
- else
- printf("%s","<\n");
- scanf("%d",&m);
- };
- printf("%s","=\n");
- };
Add Comment
Please, Sign In to add comment