Comment this code line by line in simple english
float Beta(){
return 90-Alpha();
}
};
int main (){
RightAngleTriangle rightAngleTriangle;
rightAngleTriangle.Input();
rightAngleTriangle.Output();
system("pause");
return 0;
}
/*
define a function called Beta
*/
float Beta(){
/*
return 90 minus the value returned by the Alpha function
*/
return 90-Alpha();
}
};
//define the main function
int main (){
/*create an object of class RightAngleTriangle using rightAngleTriangle
as the reference variable */
RightAngleTriangle rightAngleTriangle;
// call the Input() method
rightAngleTriangle.Input();
//call the Output() method
rightAngleTriangle.Output();
//keep the output window open
system("pause");
return 0;
}
Comments
Leave a comment