Product of first n natural numbers-algorithm, Basic Computer Science

Product of first n natural numbers - Algorithm

Working Procedure :

1. Take n = 8
2. Take I = 1
3. Take PROD = 1
4. Compute PROD = PROD * 1
5. add 1 to 1
6. If I≤ n, complete the steps from 4 to 6
7. Else, Print the value of PROD
8. Stop

2271_flow chart2.png

Posted Date: 8/29/2012 4:24:30 AM | Location : United States







Related Discussions:- Product of first n natural numbers-algorithm, Assignment Help, Ask Question on Product of first n natural numbers-algorithm, Get Answer, Expert's Help, Product of first n natural numbers-algorithm Discussions

Write discussion on Product of first n natural numbers-algorithm
Your posts are moderated
Related Questions
Central Processing Unit Microprocessor The microprocessor is an important component in the CPU. It is the unit which processes the instructions depending on its capability


Question 1 Define and explain flow chart with an example Question 2 Write an algorithm to print all even numbers in descending order and draw the flowchart Question 3 Explain

assembly programs

Computer Storage: Computer systems include two types of digital information storage: internal storage, within the CPU, and the backing (back up) storage on external devices su

how do you let kids learn on it

Question 1 Write an assembly language program to find the highest among two numbers Question2 Draw and explain the internal architecture of 8085 briefly Question3 Explai

Can someone help me write a code for force = mass * acceleration.

The following are required: Create a project in Access.  Your database must have flow and a theme. The database must be normalized.  The content m

Assignment of computer science