In C++ write a while loop that asks the arraySize to repeat until the value is 500,000.
ANSWER: Here your question is not clear still I am giving you the solution if it is your requirement then please like it or comment accordingly so that I can help you.
CODE:
#include<iostream>
using namespace std;
int main()
{
long arraySize;
while(1){
cout<<"Enter the arraySize value:";
cin>>arraySize;
if(arraySize==500000)
break;
}
}
OUTPUT:

In C++ write a while loop that asks the arraySize to repeat until the value is...
Write a while loop that repeatedly asks the user for a number until exactly 3 odd numbers have been given. (Python)
Write a java program that makes use of the ‘DO WHILE ’ loop. The program asks a user to enter information about several of their friends. The information is their last name, the state they live in, their age, and their expected graduation year. After you enter one friend, write out each individually. You must use JOptionPane to input the 4 fields, and to output the 4 fields. Refer to the textbook Code Listing 4-6 to see how to use...
python program 6 Write an input validation loop that asks the user to enter a number in the range of 100 through 1000? 7 Write an input validation loop that asks the user to enter ‘Y’, ‘y’, ‘N’, or ‘n’? 8 How many times the following loop will repeat? cnt = 0 while cnt != 5: print(cnt) cnt = cnt + 2
Write an infinite while loop that asks the user for their username and password. The loop only stops if the username and password for the user are correct. There are only 2 users: the first user’s username is user123 and their respective password is passwrd1, the second user’s username is user234 and their respective password is passwrd2. Expected output/input when loop is to stop: Enter username: user123 Enter password: passwrd1 Welcome user123 !Expected output/input when loop continues:Enter username: user234 Enter...
Write a piece of code that enters a loop and asks the user to input anon-negative number. If the user enters a negative number, the code goes back into the loop and asks the user again to enter a non-negative number. The code keeps going back into the loop until the user enters a non-negative number. Notice that the code enters the loop at least once. This is an application of 1 to N loop.Therefore, use a Do While statement.
USE JAVA. Just a basic code. We these in Blue J
2) Write a while loop that lets the user enter a number. The number should be multiplied by 10 and the result stored in the variable product. The loop should iterate as long as product contains a value less than 100. 3) Write a do-while loop that asks the user to enter two numbers. The numbers should be added and the sum displayed. The user should be asked if...
In lua what is the difference between a while loop and a repeat loop
Design a Do-While loop that asks the user to enter two numbers. The numbers should be added and the sum displayed. The loop should ask the user whether he or she wishes to perform the operation again. If so, the loop should repeat; otherwise it should terminate. using visual basic
C++
4. Write a program that inputs 5 scores using a do while loop and asks a user whether to continue or not ("yes" or "no il pressed you continues if pressed no' terutiinales) then calculates the average. 5. Make a program calculates sales for its division and quarterly earnings and show the total sum. Use 5 by 2 array matrix 6. This is an extra credil questioni Produce a program that displays by decreasing or decremeniting by 4 starting...