Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Proj2</title>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.8.3/angular.min.js"></script>
- </head>
- <body>
- <center>
- <div ng-app="" ng-init = "arr=[1.7,2.3,3.3,1.9,2.6,1.2,4.9,2.9,5.3,7.2]">
- <u><h1>5 in 1 Calculator</h1></u>
- <p>1) Addition of <b>{{arr[3]}}</b> and <b>{{arr[5]}}</b> is: <b>{{(arr[3] + arr[5]).toFixed(2)}}</b></p>
- <p>2) Subtraction of <b>{{arr[5]}}</b> from <b>{{arr[10]}}</b> is: <b>{{(arr[10] - arr[5]).toFixed(2)}}</b></p>
- <p>3) Multiplication <b>{{arr[2]}}</b> and <b>{{arr[7]}}</b> is: <b>{{(arr[2] * arr[7]).toFixed(2)}}</b></p>
- <p>4) Division of <b>{{arr[10]}}</b> from <b>{{arr[1]}}</b> is: <b>{{(arr[9] / arr[1]).toFixed(2)}}</b></p>
- <p>5) Modular Division of <b>{{arr[6]}}</b> and <b>{{arr[4]}}</b> is: <b>{{(arr[6] % arr[4]).toFixed(2)}}</b></p>
- </div>
- </center>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement