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
Jamie posted all the journal entries into ledgers. After the postings, Jamie realizes that the debit side of the travel account is greater than the credit side. What does this signify?
Answers (1)
You have been tasked with designing a high-speed Ethernet network. Your client's building already has a 150-ohm shielded twisted pair (STP) wiring installed.
Answers (1)
Which one of these auto expenses would be considered variable? A. Insurance premiums B. Vehicle registration renewal C. Gasoline D. Loan payments
Answers (1)
When Clara accesses the programs and documents on her computer by way of icons, she is said to be employing
Answers (1)
What command should you use to rearrange parts of files on the drive so they are contiguous?
Answers (1)
New Questions in Computers & Technology
What must you consider when determining the efficiency of an algorithm? Select two choices. a. The language in which the program is written b. The amount of resources, such as storage, required c. The number of characters used to write the program d.
Answers (1)
How to use translate on a website?
Answers (1)
When we consider data quality, what are the differences among validity, reliability, and representativeness? How can you know the data have high levels of these characteristics?
Answers (1)
You are creating a budget for your new business. What should you include? A. All income and expenses. B. Fixed expenses but not income. C. Income but not variable expenses. D. Fixed and variable expenses but not taxes.
Answers (1)
This resume format focuses on the tasks or skills that an applicant can perform is what? A chronological B functional C electronic or D scannable
Answers (1)
Home
»
Computers & Technology
» How to Create a while loop
Sign In
Ask Question
Menu
Calculator
Subjects
History
English
Mathematics
Biology
Physics
Chemistry
Geography
Social Studies
Business
Law
Arts
SAT
Advanced Placement (AP)
Computers & Technology
Engineering
Sign In
close
Sign In
Sign Up
Forgot Password?