Input - > Function - > Output |
Input - > Function - > Output |
Mytro |
May 5 2017, 06:39 PM
Post
#1
|
Group: Members Posts: 3 Joined: 5-May 17 Member No.: 26,397 |
Hello guys , i am new to using HTML , and i would like to create something that would allow a visitor on the website to input numbers and based on those numbers he would get a result .
For example : The user inputs X , Y and Z . Based on X , Y and Z i would have this : If X is smaller than 54 then do 10*X*(if y=1;1,15; else if y=2;1,25 ; else 1,35)* (if z=1;2; else if z=2;3 ; else 4) ; Else do 8*X*(if y=1;1,15; else if y=2;1,25 ; else 1,35)* (if z=1;2; else if z=2;3 ; else 4) So bassicaly what i need is when a user inputs 40 , 1 , 2 he would get 10 * 40 * 1,15 * 3 = 1788.5 . He will see only the result 1788,5 . |
Lo-Fi Version | Time is now: 26th April 2024 - 10:30 AM |