Discard Specific Content in java

For this challenge, you will be given an array and you are
 * asked to find multiples of 5 and 10 both in the given array,
 * remove them from the array. Rest all the elements will
 * preserve their orders.
 *
 * Input Format - you will be taking a number as an input from
 * stdin which tells about the length of the array. On another line,
 * array elements should be there with single space between them.


 * Output Format - print the required array to the stdout.

  Sample Test Case:
  Sample Input:-
7
10 20 15 2 4 7 8

Sample Output -
15 2 4 7 8


Input:
7
10 20 15 2 4 7 8

Output:
15 2 4 7 8

Comments

Popular posts from this blog

Reasoning-Number Series

Reasoning-Letter Series

Profit and Loss