Menu
I need a simple javascript function f(z) which does the following.
for z=3,4 —> output =1
for z=5,6 —> output =2
for z=7,8 —> output =3
for z=9,10 —> output =4
for z=11,12 —> output =5
for z=13,14 —> output =6
for z=15,16 —> output =7
There is no other value of z than given above..
Can you please help ? how do I write this function ?