Write a program to read the following numbers, round them off to the nearest integers and print out the
results in integer form:
29.55 50.32 101.97 -35.45 -219.62
1
Expert's answer
2011-06-14T15:10:42-0400
<script type="text/javascript"> var n=window.prompt("Enter the number of elements, n",""); var a=new Array(n); for (i=0; i<n; i++) { & a[i]=window.prompt("Enter a["+i+"]",""); }; for (i=0;i<n;i++) { document.write(Math.round(a[i]) + "<br />");& }; </script>
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment