-
Language
C
-
Description
In gets a random number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main (void)
{
int random_number;
srand ((unsigned) time (NULL));
random_number=rand()%10000;
printf ("Value of random number: %d\n", random_number);
putchar ('\n');
system ("pause");
return EXIT_SUCCESS;
}
#include <stdlib.h>
#include <time.h>
int main (void)
{
int random_number;
srand ((unsigned) time (NULL));
random_number=rand()%10000;
printf ("Value of random number: %d\n", random_number);
putchar ('\n');
system ("pause");
return EXIT_SUCCESS;
}