Skip to content

Instantly share code, notes, and snippets.

@merlinnusr
Created April 29, 2016 02:38
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 merlinnusr/cbd9a86c693ebec92c364276dd32cc12 to your computer and use it in GitHub Desktop.
Save merlinnusr/cbd9a86c693ebec92c364276dd32cc12 to your computer and use it in GitHub Desktop.
TAREA CUCEI .
#include <iostream> //factorial del numero
#include <conio.h>
#include<stdio.h>
using namespace std;
class Calculadora {
public :
int metodo (int a , int b ,int c )
};
int Calculadora::metodo(int a , int b , int c )
{
int suma ;
suma =a+b+c;
return(suma);
}
main ()
{
Calculadora objeto ;
int f=2 ,y=3 z = 4;
cout<<"La suma de los tre valores es "<<objeto.metodo (f,y,z)<<endl;
getch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment