#include<iostream> #include<cmath> using namespace std; //listing all function h
ID: 3615071 • Letter: #
Question
#include<iostream>#include<cmath>
using namespace std;
//listing all function here before main
void name()
{cout<<"My name is Roy ";}
void invalid()
{cout<<"Data is Invalid please try again";}
void sides(int&s1,int&s2,int&s3)
{cout<<"Please enter a value for for the first side ";
cin>>s1;
cout<<"Please enter a value for the second side ";
cin>>s2;
cout<<"Please enter a value for the third side ";
cin>>s3;}
void areaequaltri()
{double area=0,s1;
area=((sqrt(3))/4)*pow(s1,2.0);}
int main()
{int s1,s2,s3;
name();
sides(s1,s2,s3);
if (s1<0||s2<0||s3<0)
invalid();
else if(s1==s2&&s2==s3)
areaequaltri(int);
system("pause");
return 0;
}
K there is one small stupid bug plz help me find it!
Explanation / Answer
please rate - thanks small bug fixed--only thing I did, prototype gets int, The call gets the variable #include #include using namespace std; //listing all function here before main void name() {coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.