<!DOCTYPE html>
<html>
<head>
<title></title>
<meta
charset="utf-8" />
</head>
<body ng-app="">
<div
align="center">
<h1>Welcome to Samall Calculator</h1>
<table>
<tr>
<th>Enter
Numbers</th><td><input type="number"
ng-model="numberForAdd1" /> + <input
ng-model="numberForAdd2" type="number"
/></td><td>= {{numberForAdd1 + numberForAdd2}}</td>
</tr>
<tr>
<th>Enter Numbers</th>
<td><input
type="number" ng-model="numberForSub1" /> -
<input ng-model="numberForSub2" type="number"
/></td>
<td>= {{numberForSub1 -
numberForSub2}}</td>
</tr>
<tr>
<th>Enter Numbers</th>
<td><input
type="number" ng-model="numberForMul1" /> *
<input ng-model="numberForMul2" type="number"
/></td>
<td>= {{numberForMul1 *
numberForMul2}}</td>
</tr>
<tr>
<th>Enter Numbers</th>
<td><input
type="number" ng-model="numberForDiv1" /> /
<input ng-model="numberForDiv2" type="number"
/></td>
<td>= {{numberForDiv1 /
numberForDiv1}}</td>
</tr>
</table>
</div>
</body>
</html>
Output:
No comments:
Post a Comment