Your question appear incomplete. Is this for math? or computing?
Anyway, an algorithm is just a series of steps. So to compute the sum of two variables we can use the "by hand" method:
1. Arrange the numbers into decimal form, one on top of the other
2. Add like decimal units, carrying excess to the next decimal unit
The multiplication process will be similar
You don't need an array for that. Just do the multiplication, for example: result = factor1 * factor2; Or: result = 5 * 8;
You can write out this algorithm. This will then be programmed into the device to make determining prime numbers easier.
Yes, please do.
Algarithm: Algorithm is process to solve the problem in a step by step order Algorithm is used to write the program in a computer language. thrinath.sachin@gmail.com
syntax
totalScore = verbalScore mathScore
int sum = a + b; PS: a and b are int variables that must have been already declared and initialized.
write a function which computes product of all the number in a given range(from lower limit to upper limit) and returns the answer
You don't need an array for that. Just do the multiplication, for example: result = factor1 * factor2; Or: result = 5 * 8;
Here is the algorithm of the algorithm to write an algorithm to access a pointer in a variable. Algorithmically.name_of_the_structure dot name_of_the _field,eg:mystruct.pointerfield
Write an algorithm to find the root of quadratic equation
a write the algorithm to concatenate two given string
You don't write an algorithm for a C++ program, unless you are documenting the C++ program after-the-fact. The normal procedure is to write the algorithm first, in a language independent fashion, and then translate that stated algorithm into C++ code, or into whatever language you wish.
write an algorithm and draw a flow chart to find perimeter of a square
Design step by steps algorithm on how to write the letter A and display the result
You can write out this algorithm. This will then be programmed into the device to make determining prime numbers easier.
An ALGORITHM is a sequence of steps that depicts the program logic independent of the language in which it is to be implemented. An algorithm should be designed with space and time complexities in mind.