Guest User

Untitled

a guest
Oct 30th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <time.h>
  3. #include <stdlib.h>
  4.  
  5. void main(){
  6.     srand(time(NULL));
  7.     int n = rand()%100+1;
  8.     int m = 0;
  9.     scanf("%d",&m);
  10.     while(m != n){
  11.     if(n > m)
  12.         printf("%s",">\n");
  13.     else
  14.         printf("%s","<\n");
  15.     scanf("%d",&m);
  16.     };
  17.     printf("%s","=\n");
  18. };
Add Comment
Please, Sign In to add comment