\documentclass {jarticle}
\begin{document}
Hello TeX world.
$$ f(x) = a_{0} + \sum_{n=1}^\infty \left
a_{n} cos {n\pi x \over L}
+ b_{n} sin {n \pi x \over L } \right) $$
\end{document}
図9.11 C言語サンプルソース画面
#include <stdio.h>
main()
{
printf(“How are you?\n”);
}
図10.5 Javaのソース入力画面
public class hello {
public static void main { String arg[] ) {
System.out.println ( "Hello Java World." );
}
}
図10.8 Javaのソース入力画面
public class hello{
public static void main ( String args[] ) {
int i;
int t;
t = 0;
for ( i = 1; i <= 1000; i++ ) {
t = t + i;
}
System.out.println ( "t = " + t );
}
}