1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
galina1969 [7]
4 years ago
6

How to Create a while loop

Computers and Technology
2 answers:
Marta_Voda [28]4 years ago
6 0
While (condition) ( < > =< => = !+) 
{
    code block
<span>}

some think like this 

</span>
kap26 [50]4 years ago
4 0
For C/C++ , C# for while loop has the same layout. 

while ( /*condition*/ )
{
// TO DO
}
for e.g:

int main()
 {

int sum = 0, i = 0;

//While loop
while (i <= 100)
             sum += i++;

printf("Sum %d", sum);

getchar();

return 0;

}
This code will sum from 0 to 100 ( Sigma from x = 0 to 100 of x)


You might be interested in
The class attribute
Elodia [21]

the answer is d plz let me know if i got it right

6 0
3 years ago
You can easily view the ruler on a document by selecting the Show Ruler button located _____.
Ket [755]
In the “View” tab in the Ribbon.
7 0
3 years ago
Read 2 more answers
A common type of non-volatile memory is _____.
lilavasa [31]
SD? RAM? What are you getting at here????
7 0
3 years ago
I need help with this question!
Arlecino [84]

Answer:

5 and 10

Explanation:

Given

The above code segment

Required

Determine the outputs

Analysing the code segment line by line

[This initialises c to 0]

c = 0

[The following iteration is repeated as long as c is less than 10]

while (c < 10):

[This increments c by 5]. Recall that c is initially 0. Hence, c becomes 0 + 5 = 5

c = c + 5

[This prints the value of c which is 5]

print(c)

The iteration is then repeated because the condition is still true i.e. 5 is less than 10

c = c + 5 = 5 + 5 = 10

[This prints the value of c which is 10]

print(c)

The iteration won't be repeated because the condition is now false i.e. 10 is not less than 10.

Hence, the output is 5 and 10.

6 0
3 years ago
HELP ME!!!!!!!!!!!!
slavikrds [6]

Answer: c

Explanation: because that’s the group it’s under

6 0
4 years ago
Other questions:
  • Ann wants to create a bookmark. She should
    9·2 answers
  • What wired channel, commonly used for cable tv, consists of an insulated copper wire wrapped in a solid or braided shield placed
    12·1 answer
  • Why do hard drives tend to slow down over time?
    11·2 answers
  • To display data in a certain manner, like alphabetical order, is called
    5·2 answers
  • Why do designers use tonal shading?
    10·2 answers
  • How do news organizations primarily create revenue?
    12·2 answers
  • 1. Assuming you are downloading a 100MB (800Mb) file on a Network that can download data at 54Mbps.
    15·1 answer
  • The Danger zone around a robot is?
    13·2 answers
  • What information is necessary to review in order to be considered familiar with the Safety Data Sheet (SDS) of a substance
    7·1 answer
  • Give two logics how a computer is better then man ​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!