What is the difference between a variable and a constant object in a program(C PROGRAMMING LANGUAGE)?

Counter: Each time you find a value, you increment the counter by one. At the end, the value of the counter will be equal to the number of items found. Accumulator: Each time you find a value, you add it to the accumulator variable.

At the end, the accumulator variable will contain the sum of all the values found. E.g. You want to find how many prime numbers there are between 2 and 100: Use a counter.

Go through all the numbers, if it's a prime increase the counter variable by one. E.g. You want to find the sum of the prime numbers between 2 and 100: Use an accumulator variable.

Go through all the numbers, if it's a prime add the value to the accumulator variable.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions