ColdFusion is a type of Web programming language that uses tags similar to HTML. However, unlike the static HTML language, ColdFusion provides you with dynamic page capabilities. Math calculations are a basic part of programming in ColdFusion; use the ColdFusion tags to calculate two variables and display the results on the Web page.
Instructions
- 1
Right-click the ColdFusion file you want to edit and select "Open With." Click your ColdFusion editor to open the code.
2Create two ColdFusion variables and assign numerical values to the variables. The following code creates two variables to perform math calculations:
Perform the calculation. For instance, the following code adds the two numbers together:
Display the results to the user. Add the following tag after you complete the calculation:
The total of the two values:
0 comments:
Post a Comment