Tuesday, July 20, 2021

Addition of Two Numbers in AngularJS

Write a program that will ask the user to give two numbers, and then the program will compute the sum of the two given numbers given by the user using AngularJS.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website, kindly contact me also at my email address also. Thank you.

My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.






Program Listing

<html>

<head>

<title>Addition of Two Numbers in AngularJS</title>

</head>

<style>

body {

font-family: arial;

font-size: 25px;

font-weight: bold;

}

</style>

<script type="text/javascript" src="angular.min.js"></script>

<body>

<div ng-app="">

<form>

<table border="0" cellspacing=10>

<tr>Addition of Two Numbers in AngularJS</tr>

<tr>

<td>Enter First Value  </td>

<td><input type="number" ng-model="val_1"/></td>

</tr>

<tr>

<td>Enter Second Value </td>

<td><input type="number" ng-model="val_2"></td>

</tr>

<table>

</form>

<p>The sum of {{val_1}} and {{val_2}} is {{val_1 + val_2}}. </p>

</div>

</body>

</html>


No comments:

Post a Comment