Answer:
Following are the statement in C++ Language is given below
total=0; // variable declaration
cin >> amount; // Read the input
while(amount >=0) //iterating the loop
{
if(amount>0) // checking condition
total=total+amount; // perform operation
}
Explanation:
Following is the description of the statement
- Declared a variable "total" and initialized with them 0 to them.
- Read the input in the "amount" variable by using cin.
- iterating the loop when the amount is greater then 0.
- Checking the condition if(amount>0) then adding the total variable and amount and storing them into the total variable.
Answer:
CLS
M=2
SUM=0
DO WHILE M<=50
SUM=SUM+M
M=M+2
LOOP
PRINT " The sum of all even numbers between 1 and 50 is"; sum
The answer Direct and inderect
The person watching Lances friend typing the ATM pin is an example of shoulder browsing. Lances friend should change the ATM pin.
<h3>What does ATM mean?</h3>
This is known as automated teller machine. It is said to be a kind of unique computer that makes it easy to manage a bank account holder's money.
Based on the above, The person watching Lances friend typing the ATM pin is an example of shoulder browsing. Lances friend should change the ATM pin so that his funds will not be stolen.
Learn more about ATM from
brainly.com/question/12629434
#SPJ4