Skip to content

Instantly share code, notes, and snippets.

@Kevin-Gomez10
Created June 2, 2021 05:22
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/363e85a0b88a00dd43164ba9b263ca6f to your computer and use it in GitHub Desktop.
Save Kevin-Gomez10/363e85a0b88a00dd43164ba9b263ca6f to your computer and use it in GitHub Desktop.
POO Act7 Figura rectangulo c++ ***gomez.cpp***
#include <iostream>
using namespace std;
#include "gomez.h"
int main()
{//creando el objeto a partir de la Clase Figura
Figura Rectangulo;
//Asignar Valores
Rectangulo.h=7;
Rectangulo.b=13;
//llamar funciones para calcular area y perimetro
Rectangulo.Calcula_Area();
Rectangulo.Calcula_Perimetro();
cout<<"Hecho por Kevin Joan Gomez Rodriguez 190260224-0";
return 0;
}
@Kevin-Gomez10
Copy link
Author

Link codigo funcionando ------>https://onlinegdb.com/jZRYwfDXN

image

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