answersLogoWhite

0


Best Answer

int total = 0;

int n;

for( n = 112; n <= 212; ++n) {

total += n;

}

printf("%d\n", total);

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write c plus plus program to find all number from 112 to 212 with the cumulative total?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Write a c program to generate student mark details using union and find total and average and grade?

write a c program to display marks,total,average,grade using union


Write a program that will prompt you to give the number of pods and the number of beans per pod and calculate the total number of beans use C plus plus?

#includeusing namespace std;int main(){int pods,beans;float total;cout>beans;total=pods+beans;cout


Write the program in qbasic and add two numbers?

Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end


Write a program to aceept 5 numbers from keyboard n print itz total?

Sure! Here's a simple Python program that allows the user to input 5 numbers and then calculates and prints their total: numbers = [] for i in range(5): num = int(input(&quot;Enter a number: &quot;)) numbers.append(num) total = sum(numbers) print(&quot;The total is:&quot;, total) This program prompts the user to enter a number 5 times, converts each input to an integer, stores them in a list, calculates the sum of the numbers using the sum() function, and finally prints the total.


Write a program to print factorial of n numbers starting from x?

In C++: #include &lt;iostream&gt; using namespace std; int fact(int x); int main() { int x, total; cout &lt;&lt; "Enter a number: "; cin &gt;&gt; x; total = fact(x); cout &lt;&lt; "The factorial of " &lt;&lt; x &lt;&lt; " is: " &lt;&lt; total &lt;&lt; endl; char wait; cin &gt;&gt; wait; return 0; } int fact(int x) { if(x == 1) { return 1; } return fact(x - 1) * x; }

Related questions

How the total builds as each number is added to previous ones is shown by?

The cumulative sum.


What is a cumulative frequency?

It is the running total of the number of observations with a value upto and including the current value.


What is cumulative frequency?

Cumulative frequency is the running total of class frequencies.


What does cumulative mean?

Incorporating all data up to the present; That is formed by accumulation of successive additions; Think of it like a running total. If you have totalled up a set of numbers (eg scores), and then add one more number to it, the cumulative score is the combined sum of the previous total plus the additional number added to it.


What is Meaning of cumulative percent?

Suppose you have a set of ordinal values and numbers of occurrences of the values then the number of occurrence as a percentage of the total number of occurrences is the percentage corresponding to that particular ordinal value. The cumulative percent is the sum of the percentages up to and including that ordinal value.


How do you calculate the mean from a cumulative frequency graph?

The mean is simply the average. Mean = Sum of data divided by the total number of observations.


Write a c program to generate student mark details using union and find total and average and grade?

write a c program to display marks,total,average,grade using union


BF Skinner cumulative recorder?

B.F. Skinner developed the cumulative recorder, a device used to measure and record behavior over time. It tracks and displays each instance of a behavior as a dot on a strip of paper, providing a visual representation of the rate and pattern of behavior. The cumulative recorder was instrumental in Skinner's research on operant conditioning and reinforcement.


What is The cumulative total and kind of living things on Earth is?

Biodiversity


How do you find cumulative frequency?

By adding up the (one by one,) the frequency total in order to find the cumulative frequency, most commonly, you just then plot this on a cumulative frequency graph or box plot.


If the frequency is 4 what is the cumulative frequency?

The cumulative frequency is the running total of numbers, such as, frequency cumulative frequency 4 4 5 11 6 17 7 24 8 32


What is the cumulative column frequency distribution table?

Cumulative Frequency is The total of a frequency and all frequencies so far in a frequency distribution. It is the 'running total' of frequencies in the frequency distribution table.