Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- int main()
- {
- int x,a;
- const int MAX = 100, MIN = 1;
- srand(time(NULL));
- x = (rand() % (MAX - MIN + 1)) + MIN;
- printf("Hello world!\n");
- do
- printf("Quel est le nombre:\n");
- scanf( "%d", &a );
- if ( x > a )
- {
- printf("C'est mois\n");
- }
- else if ( x < a )
- {
- printf("C'est plus");
- }
- else
- {
- printf("Bravo!");
- }
- while x=a
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement