Page 3 - PROGRAMMING IN C_Neat
P. 3
2. Naturalness:
Provide the data types, operators and syntax required to write programs in the specified application area.
3. Abstraction:
Group essential details and ignore other details.
4. Efficiency:
Occupy less memory space.
Fast execution.
5. Structuredness:
Provide facility to divide a problem into sub-problems and write separate sub-programs for them.
6. Compactness:
Provide facility to write compact programs.
7. Extensibility:
Provide facility to extend a program.
_______________________________________________________________________________________
3. Write the algorithm and draw the flowchart to find the product of the first n natural numbers. *
Product of the First n Natural Numbers:
Natural Numbers – 1, 2, 3 . . . n
Algorithm:
Begin
Input n
product 1
for i 1 to n do
Begin
product product * i;
End
Output product
End