Created
June 2, 2021 05:16
-
-
Save Kevin-Gomez10/0011ec75b6532fb8a23f9dacd2649a9b to your computer and use it in GitHub Desktop.
POO Act7 Figura rectangulo c++ ***gomez.cpp***
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
#include "gomez.h" | |
// Metodos | |
void Figura::Calcula_Area() | |
{ | |
A=b*h; | |
cout<< "gomez.cpp_____Area Rectangulo = "<<A<<endl; | |
}//Fin de calcular Area | |
void Figura::Calcula_Perimetro() | |
{ | |
P=h+b+h+b; | |
cout<<"gomez.cpp_____Perimetro Rectangulo "<<P<<endl; | |
};//Fin de ccalcular Perimetro |
Author
Kevin-Gomez10
commented
Jun 2, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment