I took what you said salgerman, and added it to my code (after modifying it a tad). But when i try to compile it, i get an error message:
--------------
tttt.f90:4:
INTEGER:: Day, Month, Year, Century, H, N
1
tttt.f90:23: (continued)...
Not really lol. I understand what you are saying, i just dont know how to code it. It took me a while to write the code for part 1.
I also dont understand why it has nothing to do with FORTRAN. It has to be coded in FORTRAN.
Thanks for helping, btw.
There is a part 2 to my assignment that i have no idea how to do. I am to compute the day of the week my birthday fell on (Sunday or 0), and then write a code that will give me the next five years (after 2011) that my birthday falls on the same day of the week (sunday).
I understand that im...
Thanks salgerman!
And to xwb, i thought by adding IF (MOD(H,7) < 0) H = MOD(H,7) + 7 at the end of the code, H will always give a positive number. Havent had a problem with the formula giving a wrong answer yet.
In an assignment i have, i am to enter a date in the format DDMMYYYY, and its suppose to compute and display the day of the week that date falls on (based on a given algorithm). I was able to code a program that would give me the right day of the week, however, i was only able to get it to work...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.