help!!!!!!!!!!!!!! i need to calculate the area of a triangle using heron's formula.
i wrote the code below and i need to modify it so that a user is required to keep entering the three side until he/she decides to stop. If the three sides entered make an invalid triangle, the user is required to re-enter the values until valid triangle is formed. Then the area is displayed.
#include <iostream>
#include <cmath>
using namespace std;
int main(){
double a,b,c=0;
double s,A=0;
cin>>a>>b>>c;
cout<<"Enter three sides: "<<a<<" "<<b<<" "<<c<<endl;
while(!(a<=0||b<=0||c<=0||((a+