answersLogoWhite

0

Function mult

1.ans <- 0

2. For i=1 thru a by 1

a. Ans <- ans+b

3. Return (ans0

end mult

function raise

1.ans <-1

2.for i=1 thru b by 1

3.return (ans)

4.end raise

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Give an example of a backtracking algorithm?

4d + 7 = -15


What is the example of finiteness in algorithm?

I've never heard the term "finiteness" applied to an algorithm, but I think that's because the definition of an algorithm includes that it must be finite. So think of any algorithm and there is your example of finiteness.


What is an intractable problem in computer limitations and can give the example?

An intractable problem is one for which there is an algorithm that produces a solution - but the algorithm does not produce results in a reasonable amount of time. Intractable problems have a large time complexity. The Travelling Salesman Problem is an example of an intractable problem.


Example of md5 algorithm?

fdf


Give you the algorithm of creating a new binary search tree using c?

i want to know how to give the algorithm password in a computer ?


Can you give a C program about SJF algorithm?

no.


What is meant by definition based algorithm give an example?

A definition-based algorithm is one that is constructed based on a clear and precise definition or set of rules that dictate how it operates. These algorithms rely on well-defined criteria to achieve specific outcomes. An example is the Euclidean algorithm, which is used to compute the greatest common divisor (GCD) of two integers by repeatedly applying the definition of divisibility and the properties of remainders.


What is an algorithn?

If you mean "Algorithm" an algorithm is simply a set of rules, or steps to complete, which are needed to solve a particular problem. An example would be a recipe in a cookbook. A recipe is an algorithm.


What is algorithm and what are its characteristics?

An "algorithm" is simply a method to solve a certain problem. For example, when you use the standard method you learned in school to write down two numbers, one beneath the other, then add them, you are using an algorithm - a method that is known to give correct results in this particular case.


What is a non example of algorithm?

A non-example of an algorithm is a vague instruction like &quot;find a good restaurant.&quot; This statement lacks specificity in terms of criteria, steps, and a clear process for achieving the goal. Unlike an algorithm, which provides a defined procedure or set of rules to follow, this example does not offer a systematic way to arrive at a solution.


midpoint circle algorithm example in real life?

الزكاء الاصطناعي


Design an algorithm for finding all the factors of positive integerfor example in the case of the integer 12your algorithm should report 12346 and 12?

design an algorithm for finding all the factors of a positive integer