Sign In
Ask Question
Kerry
Computers & Technology
9 February, 22:10
How to Create a while loop
+5
Answers (
2
)
Alani Kemp
9 February, 22:25
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)
Comment
Complaint
Link
Christina Love
9 February, 22:32
0
While (condition) ( = = !+)
{
code block
}
some think like this
Comment
Complaint
Link
Know the Answer?
Answer
Not Sure About the Answer?
Find an answer to your question 👍
“How to Create a while loop ...”
in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers
You Might be Interested in
List three types of cardinalities for relationships within a relational database.
Answers (1)
A digital video system uses a display format of 1024 by 768 pixels. each pixel is coded using 32 bits. the system uses the ac current line (60 hz) for synchronization so the refresh rate is 60 screens / sec.
Answers (1)
What statement would you use to print the phrase Hello, world and then start a new line?
Answers (1)
Which of the following types of cloud platforms would a webmail service offered to the general public be considered? 1. SaaS2. IaaS3. PaaS4. MaaS
Answers (1)
Write a recursive function called firstOccurence that will return the position of the first occurence of a character within a string B.) Write a recursive function called sumAscii that will return the sum all of the chars within a string.
Answers (1)
New Questions in Computers & Technology
3. Describe what a pre-processor does in a network-based IDS tool such as Snort. Demonstrate your understanding of this functionality by citing two examples of pre-processors and explaining what they contribute to the process of network traffic
Answers (1)
What is the LER for a rectangular wing with a span of 0.225m and a chord of 0.045m
Answers (1)
Which statement about the Sun is correct? O A. Some of the waves that the Sun gives off is in the form of water. O B. Some of the energy that the Sun gives off is in the form of light. O C.
Answers (1)
What is the model for 2017 Ford Mustang v6
Answers (1)
Write the definition of a function reverse, whose first parameter is an array of integers and whose second parameter is the number of elements in the array. The function reverses the elements of the array. The function does not return a value.
Answers (1)
Home
»
Computers & Technology
» How to Create a while loop
Sign In
Sign Up
Forgot Password?