PDA

View Full Version : This programme prompts when area of inner circle is greater or equal to area of outer



sana.pari
04-24-2011, 06:48 PM
Subject: Please guide me in this programme.
This my code of programme. This programme prompts when area of inner circle is greater or equal to area of outer circle. But i want that programme should not do further process when this prompts displays. please guide me. #include double circleArea(double); main() { double rad1; double rad2; double ringArea; cout<<"Type the area of the outer circle="; cin>>rad1; cout<<"Type the area of the inner circle="; cin>>rad2; if(rad2>=rad1) { cout<<"Error! Radius of inner circle cannot be greater or equal to the radius of outer circle"<<<"The Area of the ring is="<