Jump to content


Photo

making JavaScript math logic ; or another programming language that


  • Faça o login para participar
Nenhuma resposta neste tópico

#1 davidcave

davidcave

    Normal

  • Usuários
  • 101 posts
  • Sexo:Masculino
  • Localidade:David

Posted 16/09/2017, 03:51

Hello,
 
So i got this problem on my project
 
Input_1 : start value
Input_2 : end value
Range 0-10 ; output 1 each increase
Range 11-20 ; output 2 each increase
Range 21-30 ; output 3 each increase
Range 31-40 ; output 4 each increase
 
So when i input 
Start : 9 , end : 11 it should print 3 (1+2)
 
At first i used if and double && but it only works between two range like the example above ; if i input something that contains 3 range like 9-22 ; thebif doesn't work anymore. 
 
So yeah , I maybe asking too much but any help will be appreciated ! 
 
Or share this problem maybe someone knows how.
Thank You
 
 
I didn't find the right solution from the Internet.
 
 
 





0 user(s) are reading this topic

0 membro(s), 0 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq