\input cap


A short program in C. It was inserted directly into the \TeX\ source file.

\medskip
\BeginC
#include <stdio.h>

void main()
{
  a=~a;
  printf("Hello, world!\n");
  // printf("Hello, world!\n");
}
\EndC

\hrule
\bigskip

And now a program inserted from a separate file.

\medskip
\InputC{prog/sun.c}

\vfill\eject


And now programs written in Pascal. This one was typed directly into this
file.

\medskip
\BeginPascal
program Hello_world;
begin
  writeln('Hello, world!');
  { writeln('Hello, world!'); }
end.
\EndPascal

\hrule
\bigskip

This one was imported from another file.

\medskip
\InputPascal{prog/guess.pas}

\bye
