Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
This programme prompts when area of inner circle is greater or equal to area of outer
#1
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="<
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How can we stop a programme at any point in C++? sana.pari 1 3,041 04-24-2011, 06:50 PM
Last Post: Support
  i used if statment to stop the program and prompt the error when area of inner circle sana.pari 0 2,133 04-24-2011, 06:42 PM
Last Post: sana.pari
  Programme Not Run in C++ giving erros 2011 sana.pari 1 1,990 04-24-2011, 06:35 PM
Last Post: Support

Forum Jump:


Users browsing this thread: 1 Guest(s)