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.
The easiest way to write a generic algorithm is to simply use the quadratic formula. If it is a computer program, ask the user for the coefficients a, b, and c of the generic equation ax2 + bx + c = 0, then just replace them in the quadratic formula.
This is a request, not a question.
mano ni anda yarrr
The precise answer depends on the language that the algorithm is to be expressed in. Assuming the common 'C' family of languages, one would write: if(i==5){ [some code] }
well, you write a mega converting algorithm in visual basic c++. or you might pick up a calculator. the answer is 2 and 1/5 or 11/5
They are bosom-friends.
You are going about this backwards. First, define the program. Second, describe its algorithm. Third, if needed, write pseudo code. (Sometime, algorithm and pseudo code is the same process.) Fourth, or third, write real code.
By learning how to program on C+.
The question is impossible to answer. You cannot determine an algorithm from a given program if the program is not actually given in the question. Please place the program in the discussion section.
how to write a program that counts automorphic number from 1 to 999
no.
No.
Divide it by 1000.
Perform encryption on the following PT using RSA and find the CT p = 3; q = 11; M = 5
Don't write, it is already written, google for 'cpp'.
pop push c++ programming
there is no solution of this problem...........that's it..........