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
In most states, an alcohol-impaired driving conviction is the person's driving record. A. a temporary part of B. not a part of C. a permanent part of
Answers (1)
Which of the following is NOT a benefit of safety and health programs?
Answers (1)
In the 1970s which company developed computer innovations such as the mouse, graphical user interface, and word processors?
Answers (2)
For a sample of 100 students, the median number of text messages sent per day is 90, the first quartile is 78, and the third quartile is 102.
Answers (1)
Do you like Houseparty?
Answers (1)
New Questions in Computers & Technology
What type of operating system allows two or more programs or apps to reside in memory at the same time?
Answers (1)
Select the examples that best demonstrate likely employers for Journalism and Broadcasting workers. Check all that apply. a telecommunications company a radio station a newspaper a television network a movie studio a publishing company
Answers (1)
Which of the following is considered an IT career
Answers (1)
Implement a Python function with the signature Transfer (S, T) that transfers all elements from the ArrayStack instance S onto the ArrayStack instance T, so that the element that starts at the top of S is the first to be inserted onto T, and the
Answers (1)
Writing a story with a proper sequence and orginization is important because what?
Answers (2)
Home
»
Computers & Technology
» How to Create a while loop
Sign In
Sign Up
Forgot Password?