Advertisement
folliejester

Untitled

Mar 5th, 2024
625
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.89 KB | Source Code | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>  
  4.   <title>Proj2</title>
  5.   <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.8.3/angular.min.js"></script>
  6. </head>
  7. <body>
  8.   <center>
  9.   <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]">
  10.     <u><h1>5 in 1 Calculator</h1></u>
  11.     <p>1) Addition of <b>{{arr[3]}}</b> and <b>{{arr[5]}}</b> is: <b>{{(arr[3] + arr[5]).toFixed(2)}}</b></p>
  12.     <p>2) Subtraction of <b>{{arr[5]}}</b> from <b>{{arr[10]}}</b> is: <b>{{(arr[10] - arr[5]).toFixed(2)}}</b></p>
  13.     <p>3) Multiplication <b>{{arr[2]}}</b> and <b>{{arr[7]}}</b> is: <b>{{(arr[2] * arr[7]).toFixed(2)}}</b></p>
  14.     <p>4) Division of <b>{{arr[10]}}</b> from <b>{{arr[1]}}</b> is: <b>{{(arr[9] / arr[1]).toFixed(2)}}</b></p>
  15.     <p>5) Modular Division of <b>{{arr[6]}}</b> and <b>{{arr[4]}}</b> is: <b>{{(arr[6] % arr[4]).toFixed(2)}}</b></p>
  16.   </div>
  17. </center>
  18. </body>
  19. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement