PC1.CPP


#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<dos.h>
#include<math.h>
#include<menu2.h>
#define sal 0x378
#define ent 0x379
#define M 200

/************************** PROGRAMA PRINCIPAL*****************************/
/****************** OPERACIONES BASICAS E INGRESO DE DATOS ****************/

void main()
{
int op,cant;
outp(sal,0);
menu1("1");
do {
      op=menu2();
      if(op==27)exit(1);
      if(op==49||op==50||op==51||op==52)
      {
      cleardevice();
      delay(200);
      switch(op){
            case 49: cleardevice();
                         suma();                                                                                                  //Sumatoria
                         break;                                                                                                   //SUM(i<n<s)((x,a))
            case 50: cleardevice();
                         multi();                                                                                                   //Multiplicatoria
                         break;                                                                                                    //MUL(i<n<s)((x,a))
            case 51: potencia();                                                                                             //Serie de Potencia en (x-a)
                         break;                                                                                                    //SUM(i<n<s)(n*(x-a)^n)
            case 52: exponencial();                                                                                        //Exponencial
                          break;                                                                                                   //SUM(i<n<s)(-1)^(n+1)/n!
            case 27: exit(1);

            default:   clrscr();
                          gotoxy(10,30);printf("PRESIONO UNA TECLA MAL");
                        }
       }
     }while(op!=27);
closegraph();
}

/**************************************************************************/