Best Answer

There is no algorithm. To add two numbers just put a + between them.

int a = 1 + 2;

User Avatar

Wiki User

2009-01-28 22:36:02
This answer is:
User Avatar
Study guides


20 cards

A polynomial of degree zero is a constant term

The grouping method of factoring can still be used when only some of the terms share a common factor A True B False

The sum or difference of p and q is the of the x-term in the trinomial

A number a power of a variable or a product of the two is a monomial while a polynomial is the of monomials

See all cards
2564 Reviews

Add your answer:

Earn +20 pts
Q: What is algorithm to sum two natural numbers using c?
Write your answer...
Still have questions?
magnify glass
Related questions

Write algorithm compute sum of square of N numbers?

1. Design an algorithm to compute sum of the squares of n numbers?

What is the Program to find sum of first 'n' natural numbers in algorithm?

CLS: DEFINT SUM: SUM = 0 FOR K = 1 to N SUM = SUM + N NEXT K PRINT "The sum of the first "; N; "natural numbers is "; SUM; ".": PRINT PRINT "You're welcome. The pleasure is ours. Drop in any time." END

Algorithm for Adding two numbers in pointer in using c program?

Algorithm in C Language:int *a,*b; //Declaraction of the two pointersint sum;scanf("%d%d",a,b); //Reading values of the 2 variablessum=*a+*b;printf("SUM = %d",sum);

WHAT IS THE Algorithm for calculating the average of 4 numbers?

To find the average of n numbers, sum the numbers and divide the sum by n. Thus for 4 numbers, divide their sum by 4.

Is the sum of two natural numbers always a natural number?

Yes. You know this is true because you learned a process-- an "algorithm"--for adding two numbers together, and if you start with two whole numbers, the result is also a whole number.

What is the sum of 50 natural numbers?

The sum of the first 50 natural numbers is 1,251.

What is the algorithm for average of three numbers?

Algorithm for average of 3 numbers:Sum the 3 numbers.Divide the sum by 3.

What are the examples of algorithm in the flow chart?

TO find the sum of n numbers?

What is sum of natural numbers between 200?

The sum of the first 200 natural numbers is 20,001.

Write an algorithm to print sum of all even numbers?

Start print "the sum of all even numbers is infinite" end

Write algorithm and draw flowchart to find the sum of even numbers?


What is the sum of all natural numbers?

The sum is infinite

People also asked