answersLogoWhite

0


Best Answer

The following is for F95 and later (due to the use of intrinsic SUM ):

My assumptions:

-Your numbers are integers

-Your numbers are stored in an array

-The numbers you are describing are 0-100

program findSum

!I assumed integer, replace this with your data type

integer, dimension(100) :: numbers

integer :: sumOfNumbers

!We populate an array with our numbers

!Replace this with your numbers

do i=1,(size(numbers)+1)

numbers = i end do

!We find the sum of those numbers

sumOfNumbers = sum(numbers)

!We write out the sum to prompt

write(*,*) 'Sum is: ', sumOfNumbers

end program findSum

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you find sum of 100 numbers using fortran programme?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Where can you find a FORTRAN 77 program?

Go to your local library or computer store and find a book on Fortran programming, or try any internet search engine. Go to your local library or computer store and find a book on Fortran programming, or try any internet search engine. Go to your local library or computer store and find a book on Fortran programming, or try any internet search engine.


How to write a C program to find largest 2 numbers using pointers?

program to find maximum of two numbers using pointers


Can HP Chromebooks run Minecraft?

From experiance I have yet to find a way that a chrome book without using an external programme can run minecraft.


How do you find 140 by using LCM?

Two or more numbers are needed to find the LCM


Find the greatest common factor of the numbers using prime factorization?

i dont know what that means does anyone get this"find the greatest common factor of the numbers using prime factorization We'll be eager to jump on it as soon as you give us the numbers.


How do you find the difference using mixed numbers?

first add the whole numbers then do simple fraction subtraction


How do you find the biggest of n numbers using pointers in C?

yes


Write a programme to find greater among two numbers in c plus plus?

You could use an if, but the ternary operator is especially compact for this purpose: result = a > b ? a : b;


The sum of two numbers is 8.5 and their product is 18. Find the numbers.?

4 and 4.5, using trial and error


How do you find rectangles using the prime numbers?

Prime numbers have one factor pair, hence one rectangle.


Where can you find a programme that you can make graffitti writing?

www.graffiticreator.net/


I thought I un-installed a program that the computer insists is still there and how do I find it?

if you think that you have uninstall a programme but it is still there in your computer you need check in the programme files where you will see the list of programme .....