The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Input - > Function - > Output
Mytro
post 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 .

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 10:30 AM