Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Allocate array
- Description
- Write a program that allocates array of N integers, initializes each element by its index multiplied by 5 and the prints the obtained array on the console.
- Input
- On the only line you will receive the number N
- Output
- Print the obtained array on the console.
- Each number should be on a new line
- Constraints
- 1 <= N <= 20
- N will always be a valid integer number
- Sample tests
- Input Output
- 5 0
- 5
- 10
- 15
- 20
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement