Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* al.popov94@gmail.com */
- #include <stdio.h>
- #include <stdlib.h>
- main()
- {
- int num, ent; /* num - random number, ent - enter number */
- printf("Game: Random number!\n");
- while(num != ent) {
- printf("\nTry again.\n");
- num = rand()%10;
- /* printf("\n# Cheate - %d #\n", num); */
- printf("Enter number: ");
- scanf("%d", &ent);
- }
- printf("Congratulate! You have guessed.\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement