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
Question 1 Explain the concept of knowledge discovery in database Question 2 Discuss the following types of Multidimensional Data Models                    Stars, Snowflakes and

1. Write an algorithm and draw a flowchart to accept the names and gross salary of 5000 employees and to generate the net pay. If the gross salary is greater than N 50,000 declare

what are slides how do you put slides on powerpoint

A scaling constant indicates an expansion of length

requirement analysis and specification for online voting

Compare and contrast two qualitative analysis approaches. You must select two that are a true contast eg  CAQADS (say leximancer ) v discourse analysis or thematic analysis by hand

Priority Scheduling • The fundamental idea is straightforward: each process is assigned a priority, and priority is permitted to run. Equal-Priority processes are scheduled in FCF

Uniform Path Cost Search-Artificial intelligence A breadth first search will search the solution with the shortest path length from the first state to the goal state. Though, t


Question 1 . Explain (a) Scatter loss                                (b) Aperture medium coupling loss Question 2 . What do you mean by Geo stationary orbit? Question