write sequence of even numbers
Answers
Answered by
0
Answer:
Answered by
3
The Odd-Even sequence contains first contains all odd numbers from 1 to n then all even numbers in set 1 to n. Examples : Input : n = 5, k = 3 Output : 5 In this example, the Odd-Even is {1, 3, 5, 2, 4}. The third number in sequence is 5.
HOPE ITS HELPFUL.♥
Similar questions