answersLogoWhite

0

What is the sum of 0 to 100?

Updated: 4/28/2022
User Avatar

Wiki User

13y ago

Best Answer

5050.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the sum of 0 to 100?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the sum of -100 and -100?

0


Java code to find the sum in all integer?

The following will sum all integers from 1-100. Adjust according to your needs.int sum = 0;for (int i = 1; i


What is the sum of 75-100 plus 0?

75 - 100 + 0 = -25


How do you write while andfor loop to get sum of1to100 integer?

int i, sum; /* example using while */ sum = 0; i = 1; while (i <= 100) { sum += i; ++i; } /* example using for */ sum = 0; for (i = 1; i <= 100; ++i) sum += i;


What are the sum of the first 100 integers using the do while loop and display the result?

public class TestBB { /** * @param args */ public static void main(String[] args) { int sum = 0; int i = 0; do { sum = sum + i; i++; } while (i <= 100); System.out.println("Total of 100 numbers is: " + sum); } }


Hoe can you write a programme to claculate 1 plus 2 plus 3..100?

You add the numbers in a loop. Here is an example in Java:int sum = 0;for (int i = 1; i


Write a shell program that Adds the integers 1 to 100 and dislay a message?

SUM = 0: FOR N = 1 to 100: SUM = SUM + N: Next N: PRINT CHR$(11); "Sum ="; SUM: END


How do you write an algoritm that calculates sum of all even numbers ranging from 0-100?

100


What is the sum of the whole numbers from 5 up to 100?

its 5035the summarian notation tells you that(sum of all #from 0 to a number'N'(sum of all #from 0 to N) = (n)+(n-1)+(n-2)+(n-3)+...+(2) +(1) or(sum of all #from 0 to N) = (1)+ (2) + (3) + (4)+...+(n-1)+(n)the two different sums are aligned by columns. now add the two colunms accordingly and you'll get2x(sum of all #from 0 to N)=(n+1)+(n+1)+...+(n+1) (n+1)is added n timesso2x(sum of all #from 0 to N) =n(n+1)(sum of all #from 0 to N) =n(n+1)/2so (sum of 5 to 100) = (sum of 0 to 100)- (sum of 0 to 5)=100(101)/2 - 5(6)/2 = 5050 - 15 = 5035


To write a program that calculates and prints the sum of all even numbers between 0 and 100 in c plus plus?

#include using std::cout;using std::endl;int main(){int sum = 0;cout


In c program how to print addition from 1-100 numbers?

#include using std::cout;using std::endl;int main(){const int numToAdd = 100;int sum = 0;for (int i = 1; i


C program to determine sum of squares of all even numbers between 10 to 1000?

main() { int i,sumo=0,sume=0,oddno,evenno; for(i=1,oddno=1,evenno=2;i<=100;++i,oddno=oddno+2,evenno=evenno+2) { sumo=sumo + oddno; sume=sume + evenno; } printf("Sum of odd nos = %d And Sum of even nos = %d,sumo,sume); }