Some simple Fortran and C programs

 

These examples should be sufficient to get you started. They do not define the whole languages, of course.

To fetch a program (if you are using Netscape) press on the link with the right mouse button, hold it down and pick Save Link As...

Note that the names of compilers, compiler options and Makefile variables (macro names) are not standardized. So you must modify the Makefile to suit your environment.

Fortran77-program and Makefile

Fortran90-program and Makefile

C-program and Makefile  

C++-program and Makefile