Subject: Sir i have solved my problem myself. plz check my programmeView more random threads:
- Subject: Dev c++
- info regarding "source file not compiled"
- Multidimensional Array vs If-Statements and Functions? in...
- In file included from...
- what is Buffer in c++ 2011
- what is the meaning of sibling?as it is mentioned in...
- what are the latest updates for C++ May 2011
- f i use hints for book ie(c++ How to Program 5th Edition)...
- What is difference among Binary Tree, Complete Binary Tree...
- Issues with double variables in c++ 2011
I have solved my problem myself sir. i used if statment to stop the program and prompt the error when area of inner circle is greater or equal to area of outer circle. this is my code: #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<<"The Area of the ring is="<<<"Error! Radius of inner circle cannot be greater or equal to the radius of outer circle"<
Sponsored Links
There are currently 1 users browsing this thread. (0 members and 1 guests)