menu
Qamnty
Login
Register
My account
Edit my Profile
Private messages
My favorites
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.
Ask a Question
Questions
Unanswered
Tags
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 & Tech
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 & Tech
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 & Tech
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 & Tech
high-school
1
answer
1
vote
119k
views
Ask a Question
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
Seven basic internal components found in a computer tower
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Disadvantages of using animation in advertising? advantages and disadvantages of using animation for education? advantages and disadvantages of using animation in entertainment?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qamnty