Skip to content

Instantly share code, notes, and snippets.

@Kevin-Gomez10
Created June 2, 2021 05:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kevin-Gomez10/0011ec75b6532fb8a23f9dacd2649a9b to your computer and use it in GitHub Desktop.
Save Kevin-Gomez10/0011ec75b6532fb8a23f9dacd2649a9b to your computer and use it in GitHub Desktop.
POO Act7 Figura rectangulo c++ ***gomez.cpp***
#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
@Kevin-Gomez10
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment