# Dividing fractions help!!!

• 01-20-2003
Staractor6
Dividing fractions help!!!
hey i've been taking a C++ class for half a school year and i need help on writing thois program for HW....the question is....Given Fractions a/b and c/d (a,b,c,d integers, b+d not zero) print in lowest terms the quotient of a/b divided by c/d.....first test if b or d=0................since i have only learned basic stuff i'd have to do this in void functions with parameters and also loops. please help by writing this program for me as basic as you can.........thanks
• 01-20-2003
RoD
tell ya wat, try and do it yourself, show some effort, then come back...
• 01-20-2003
Staractor6
well i have sorta an idea wat to do........i need a do while loop to make sure b and d ==0 and i need. how do i divide fractions tho? and how would i check to see if i was in lowest terms?
• 01-20-2003
Kings
hi,
you probably know this already. But to divide functions, you would write it like any other math function in C++
e.g a=4/3;