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() //
- {
- srand(time(0));
- int v = 0;
- printf("time_t(0) = %d\n", time(0) );
- int array[30];
- for(int i = 0; i < 30; i++)
- {
- array[i] = rand()%200;
- }
- for(int i = 0; i < 30; i++)
- {
- printf("%3d", array[i]);
- if(array[i] % 3 == 0)
- {
- printf(" -> %d ", array[i]);
- }
- printf("\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement