Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int foo();
- ////////////////////////////////////////////////////
- int main() //
- {
- foo();
- }
- ////////////////////////////////////////////////////
- int foo() //
- {
- #define SIZE 20
- int nums[SIZE],
- k;
- srand(5);
- for(k = 0; k < SIZE; k++)
- {
- nums[k] = rand()%19;
- printf("%d, ", nums[k]);
- } printf("\n");
- for(k = 19; k >= 0; k--)
- {
- printf("%d, ", nums[k]);
- } printf("\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement