muktyas@gmail.com
-->exec('pascal.sce')
mau ditampilkan berapa kombinasi?7
-->a
a =
! 1 !
! !
! 1 1 !
! !
! 1 2 1 !
! !
! 1 3 3 1 !
! !
! 1 4 6 4 1 !
! !
! 1 5 10 10 5 1 !
! !
! 1 6 15 20 15 6 1 !
! !
!1 7 21 35 35 21 7 1 !
#!/bin/sh
echo "\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[english]{babel}
\begin{document}
Hi guys, I have an exercise for you.. Can you answer this question?
">recobayu.tex
for i in {1..15};do
echo "$i.">>recobayu.tex
x1=$((RANDOM%10+1))
x2=$((RANDOM%10+1))
#x" + bx + c =0
b=-$(($x1+$x2))
c=$(($x1*$x2))
echo "$ (x-$x1)(x-$x2)=0 \Leftrightarrow x^2 $((b)) x + $c =0 $
">>recobayu.tex
done
echo "\end{document}">>recobayu.tex
pdflatex recobayu.tex recobayu.pdf
evince recobayu.pdf