answersLogoWhite

0


Best Answer

You add the numbers in a loop. Here is an example in Java:

int sum = 0;

for (int i = 1; i <= 100; i++)

sum += i;



You add the numbers in a loop. Here is an example in Java:

int sum = 0;

for (int i = 1; i <= 100; i++)

sum += i;



You add the numbers in a loop. Here is an example in Java:

int sum = 0;

for (int i = 1; i <= 100; i++)

sum += i;



You add the numbers in a loop. Here is an example in Java:

int sum = 0;

for (int i = 1; i <= 100; i++)

sum += i;

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

You add the numbers in a loop. Here is an example in Java:

int sum = 0;

for (int i = 1; i <= 100; i++)

sum += i;

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Hoe can you write a programme to claculate 1 plus 2 plus 3..100?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is 510 plus 3100?

3610


How do you write a programme to print a plus bi in c plus plus?

#include &lt;iostream&gt; int main() { std::cout &lt;&lt; "a plus bi" &lt;&lt; std::endl; return 0; }


Write a c plus plus programme to illustrate single inheritance?

struct A {}; // base class struct B : A {} // derived class (single inheritance).


Write a programme to find greater among two numbers in c plus plus?

You could use an if, but the ternary operator is especially compact for this purpose: result = a &gt; b ? a : b;


What is 100 plus 3000?

3000 + 100 = 3100


What are the steps to execute a c plus plus programme?

Build it, link it, run it.


Make programme for multification of three no in c plus plus?

result = a * b * c;


What is 6 plus 2094?

The answer is 3100. Simply add the numbers together arithmetically as you would for the problem two plus two. To check your work, a calculator is the best option.


Can you write I plus plus plus?

I+++?


How do you write 4000 plus 600 plus 4?

How do you write 100,000 plus 20,000 plus 1,000 plus 900 plus 30 plus 9?


How do you write 800 plus 6 plus 70000 plus 0 plus 2000 plus 50 plus 3000000 in short form?

You write it as 3,072,856


How do you write java programme to find sum of 13 plus 23 plus 33 plus .up to193?

class ass{ public static void main(String[] args ){ int 13,33,23,...193 sum = 0; for (count = 0; count&lt;=193; count++); { sum=sum+count; System.out.print(count + "sum"); }System.out.println("sum is"+sum);