php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i used if statment to stop the program and prompt the error when area of inner circle
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1
Subject: Sir i have solved my problem myself. plz check my programme
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"<
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  c++ program on unix varup 0 7,687 10-10-2012, 06:16 PM
Last Post: varup
  i take input from getchar(); function in program in C++ 2012 Vuhelper 0 3,127 05-31-2012, 01:40 AM
Last Post: Vuhelper
  program Output in C++ 2012 Vuhelper 0 3,081 01-06-2012, 12:28 AM
Last Post: Vuhelper
  For running C++ program from command prompt “gcc” and “g++” compilers are used. Vuhelper 0 6,484 01-04-2012, 10:41 PM
Last Post: Vuhelper
  Function (Retrun push)for what purpose use in the program. ? Vuhelper 0 1,960 11-05-2011, 05:03 PM
Last Post: Vuhelper
  C++ Help with Template class program 2011 Vuhelper 0 923 07-23-2011, 05:40 PM
Last Post: Vuhelper
  A simple pthread program runtime error in c++ 2011 Vuhelper 0 1,002 07-23-2011, 05:39 PM
Last Post: Vuhelper
  floor conversion error in c++ 2011 Vuhelper 0 955 07-22-2011, 08:49 PM
Last Post: Vuhelper
  Problem with the complexity of the program 2011 Vuhelper 0 839 07-06-2011, 06:19 PM
Last Post: Vuhelper
  Write a calculator program using a do-while loop in c++ 2011 Vuhelper 0 2,865 06-27-2011, 06:41 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support