MCA World :: Computer Application ::
Questions :  Answers : Solutions of TMA & Project Assignment  of  MCA courses of IGNOU, NIT & Other Universities.

::: Factorial



Home • Introduction to Software • Data Structures • System Engineering • Database Management System • Discrete Mathematics • Numerical & Statistical Computing • Software Engineering • Operation Research • Accounting & Finance • Computer Architecture • Operating Systems • Intelligent Systems • Relational Database • Obejct Oiented Systems

Factorial

Up • Matrix Multiplication • Factorial • Max Min • Pie chart • Baye's Theorem - Probability • Binomial Theory of Probability • Correlation Calculation

Main Chapters

Home
Introduction to Software
Data Structures
System Engineering
Database Management System
Discrete Mathematics
Numerical & Statistical Computing
Software Engineering
Operation Research
Accounting & Finance
Computer Architecture
Operating Systems
Intelligent Systems
Relational Database
Obejct Oiented Systems

Factorial

2. FORTRAN Program for Factorial Calculation

Write a FORTRAN Function FACT with one Integer parameter N, that computes the factorial of N and prints suitable message.

Ans :

C*****FORTRAN FUNCTION FACT

     

FUNCTION FACT(N)

 

C*****INITIALISE FACT FOR N 

IF (N .LE. 0) THEN

FACT = 0

WRITE (*,*) 'N <=0 AND FACT = 0'

GO TO 100

ELSE FACT = 1

END IF

DO 50 I=1,N

50          FACT = FACT*I

C***** PRINT RESULTS

WRITE (*,*)'THE FACTORIAL OF NUMBER N=',N,'IS=',FACT   

100          RETURN  

END  

 

Links for Web Developers Web Publishers

 

Links from Google

 

 
 


Home • Introduction to Software • Data Structures • System Engineering • Database Management System • Discrete Mathematics • Numerical & Statistical Computing • Software Engineering • Operation Research • Accounting & Finance • Computer Architecture • Operating Systems • Intelligent Systems • Relational Database • Obejct Oiented Systems



This is complete MCA study materials containing question, solutions, answers, programming, scripts, TMA, Project assignment solutions for aspiring MCA or BCA student. This website may be useful for all in general and IGNOU student in particulars. Disclaimer : Execution and correctness of programs/answers may be established by the users himself and the mcaworld.net shall not held responsible for any damage/loss caused due to the use of code over this site.



Webmaster Bipin Bihari Pandey, An IT Expert of DotNet Technology, MCA from IGNOU
bipin9830@rediffmail.com or bipin9830@yahoo.com