Recent content by Jeepster
-
J
Fortran How can I improve my Fortran program to factor numbers?
It says there is an error in the (I2, A2, I2, $). It has an arrow pointing to the first I2.- Jeepster
- Post #6
- Forum: Programming and Computer Science
-
J
Fortran How can I improve my Fortran program to factor numbers?
I know I just signed up but this thing is due in a few hours. Any help is much appreciated.- Jeepster
- Post #4
- Forum: Programming and Computer Science
-
J
Fortran How can I improve my Fortran program to factor numbers?
ok. I put this together but I am getting an error program Factors implicit none real::n, i, x integer::f, c=20 print*, "enter a positive integer:" read*, n i=2 do while (n>1) if (mod(n, i)==0) then i=i+1 n=n/i else write(*, 100) i, "**", c 100 format(I2, A2...- Jeepster
- Post #3
- Forum: Programming and Computer Science
-
J
Fortran How can I improve my Fortran program to factor numbers?
Got to write a program that factors a given number(>1) Here is what I have: program Factors implicit none real::n, i print*, "enter a number:" read*, n i=2 do while (n>1) if (mod(n, i)==0) then i=i+1 n=n/i else write (*,*) ' X= ', X end if end do end program...- Jeepster
- Thread
- Factoring Fortran
- Replies: 5
- Forum: Programming and Computer Science