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