Contact Us  
 
iMediaTrend
Rukan Puri Mutiara Blok BD
No. 17 Jl. Griya Utama Sunter,
Jakarta Utara 14350
: 021 - 29560 - 777
: admin@imediatrend.co.id

Message sent…

Programming Test Cases

Solve all these logical cases using any programming language


Case #1
Command : Print n numbers of all fibonacci numbers incrementally.
Input : n = 9 (dynamic value)
Output : 0, 1, 1, 2, 3, 5, 8, 13, 21
Hint : Use recursive to get more rating.


Case #2
Command : Print n numbers of all prime numbers decrementally.
Input : n = 9 (dynamic value)
Output : 19, 17, 13, 11, 7, 5, 3, 2, 1


Case #3
Command : Continue the sequence till n numbers.
Input : n = 9 (dynamic value)
Output : 7, 11, 20, 38, 73, 141, ???, ???, ???
Hint : Solving this case only in one loop will be an A+ for you.