The black points in the picture form the letter A. It is created with using for loop only. \ifnum doesn't allow two or more conditions. So I draw the desire result using five nest for loop. It is an inefficient way to do so...Is there a better way to do so?
Here is the code:
\documentclass{article}
\usepackage{tikz}
\usepackage{amssymb}
\usepackage{xifthen}
\begin{document}
\begin{figure}
\begin{tikzpicture}[scale=1]
\foreach \x in {0,...,11}
\foreach \y in {0,...,14}
{
\draw (\x,\y) circle(2pt);
}
\foreach \x in {1,...,3}
\foreach \y in {1,...,11}
{
\fill (\x,\y) circle(2pt);
}
\foreach \x in {8,...,10}
\foreach \y in {1,...,11}
{
\fill (\x,\y) circle(2pt);
}
\foreach \x in {4,...,8}
\foreach \y in {4,...,6}
{
\fill (\x,\y) circle(2pt);
}
\foreach \x in {4,...,8}
\foreach \y in {9,...,11}
{
\fill (\x,\y) circle(2pt);
}
\end{tikzpicture}
\end{figure}
\end{document}
\ifnum ... \fi
, though, to combine conditions.