Gcf and lcm

Guys is there a script to find greatest common factor and lowest common multiple, please i need it really bad. Thx