0% found this document useful (0 votes)
18 views

Fortran Program List

FORTRAN program list
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Fortran Program List

FORTRAN program list
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Your assignment: You must use Function or SUbroutine

subprograms, and Format in fortrans.

1. If N is a posltive integer, then test whether N


is prime or not.
2 Genrate list of first N prime numbers.
3 Generate list of first N Fibonacci numbersS.
4 Find the GCD and LCM of 2 positive numbers..
Calculate your age.
6 Print your name in reverse order.
7. Input a 4 digit positive number and print it in
reverse order.
8. If N is a positive integer, then test whether N
is even or odd.
9. Find the mean, median and statndard deviation of
N integers.
10. Find the largest, second largest, smallest and
second smallest numbers from N integers.
11. Find factorial of a positive integer.
12. Genrate Pascal triangle.
13. Find the day of a year.
14. Check whether a year is leap-year or not.
15 Generate your 1st year grade sheet.
16. Find square root of a positive integer using
Newton raphson method.
17. Input a positive integer n and prints the sum of
the odd numbers between 1 to n.
18. Input two positive integers and test whether they
are coprime or not.
19. Find the perfect numbers between 1 to 100e.
20. Find Highest common factor (HCF) of 2 positive
integers.
Convert a binary number into a decimall number.
21.
Consider an array of N integers. Separate Even
22
and Odd numbers.
23.
Consider an array of N integerS. Separate prime
numberS.
integers. Sort elements of
24. Consider an array of N
order.
an array in ascending/descending
Find the product of tWo 3x3 square matrices
25.
3x3 square matrix. Find the sum of
26. Input a

diagonal elements of the matrix.


27. Input 3x3 square matrix. Find the sum of the
a
elements above the main diagonal of the matrix.
28. Input a 3x3 square matrix. Find the sum of the
elements below the main diagonal of the matrix.
29. Find the determinants of a 3x3 square matrix.
30. Find the inverse of a 3x3 square matrix.

You might also like