Sample calculator using Visualforce page and Apex in Salesforce
Sample code: Visualforce page: <apex:page controller="Sample"> <apex:form > <apex:pageBlock > <apex:pageBlockSection > <apex:pageBlockSectionItem > <apex:outputLabel value="Value 1"/> </apex:pageBlockSectionItem> <apex:pageBlockSectionItem > <apex:inputText value="{!val1}"/> </apex:pageBlockSectionItem> <apex:pageBlockSectionItem > <apex:outputLabel value="Value 2"/> </apex:pageBlockSectionItem> ....