menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Write a loop that asks the user to enter a number. the loop should iterate 10 times and keep a running total of the numbers entered.
asked
Dec 5, 2018
153k
views
1
vote
Write a loop that asks the user to enter a number. the loop should iterate 10 times and keep a running total of the numbers entered.
Computers and Technology
college
Seshadri R
asked
by
Seshadri R
7.8k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
4
votes
int sum = 0;
int number;
for (int i=0; i<10; i++) {
printf("Enter an integer number: ");
scanf_s("%d", &number);
sum += number;
}
printf("The sum is %d", sum);
PayToPwn
answered
Dec 10, 2018
by
PayToPwn
8.5k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Jan 6, 2024
116k
views
C++ 1) Write a loop that asks the user to enter a number. The loop should iterate 10 times and keep a running total of the numbers entered. 2) Write a nested loop that displays 10 rows of '#' characters.
Jayson Chacko
asked
Jan 6, 2024
by
Jayson Chacko
8.4k
points
Computers and Technology
high-school
1
answer
1
vote
116k
views
asked
Jan 16, 2022
165k
views
Design a loop that asks the user to enter a number. The loop should iterate 10 times and keep a running total of the numbers entered. Ejercicio #2 Largest and Smallest Design a program with a loop that
Philcruz
asked
Jan 16, 2022
by
Philcruz
8.1k
points
Computers and Technology
college
1
answer
3
votes
165k
views
asked
Nov 16, 2024
119k
views
In which of the following cases would you use the for loop in Python? -None of the options -When you know exactly the number of times you want to iterate over a block of code - When you want to reuse the
Isurujay
asked
Nov 16, 2024
by
Isurujay
7.5k
points
Computers and Technology
high-school
1
answer
1
vote
119k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Explain why binary codes are used to represent characters, numbers and symbols :)
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org