Write a pretest loop that adds together integers from 1 to 50. Use theintNumbervariable (which contains the number 1) to keep track of the integers. Store the result in theintResultvariable (which contains the number 0). Use the Do...Loop statement and theWhilekeyword.

What will be an ideal response?


Do While intNumber <= 50
intResult = intResult + intNumber
intNumber += 1
Loop

Computer Science & Information Technology

You might also like to view...

Modify your years.html page so that it uses a function to encapsulate the statements for accessing the number of years, calculating the corresponding number of seconds, and displaying the seconds in the page. The button in the page should call this function when clicked.

What will be an ideal response?

Computer Science & Information Technology

Why do computers use zeros and ones?

a. because combinations of zeros and ones can represent any numbers and characters. b. because digital devices have two stable states and it is natural to use one state for 0 and the other for 1. c. because binary numbers are simplest. d. because binary numbers are the bases upon which all other number systems are built.

Computer Science & Information Technology

When a collection of honeypots connects several honeypot systems on a subnet, it may be called a ____.

A. nest B. web C. honeynet D. tunnel

Computer Science & Information Technology

The Query window is broken into two parts, the table area and the ________

A) query list area B) field list area C) properties grid D) design grid

Computer Science & Information Technology