Calculadora C
Calculadora C
Calculadora C
.......................................................................
. Calcula.cpp .
.......................................................................
.......................................................................
.REALIZADO : 23/02/2002 .
.......................................................................
.DESCRIPCION : .
.......................................................................
. .
.......................................................................
.......................................................................
*/
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <math.h>
int main()
{
double a, b, resultado;
int Opcion;
void exit();
do
clrscr();
gotoxy(27,2);
gotoxy(27,3);
printf("*****************************");
gotoxy(27,5);
gotoxy(27,7);
gotoxy(27,9);
printf(" 3.- MULTIPLICACION");
gotoxy(27,11);
gotoxy(27,13);
gotoxy(27,15);
gotoxy(27,18);
scanf("%d", &Opcion);
switch (Opcion)
{
case 1:
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
case 6:
exit();
break;
default:
clrscr();
gotoxy(31,10);
gotoxy(25,12);
getch();
break;
}while(Opcion != 6);
return 0;
double c;
clrscr();
gotoxy(24,5);
gotoxy(24,7);
gotoxy(24,9);
c = a + b;
gotoxy(24,12);
gotoxy(24,14);
c=a+b
double c;
clrscr();
gotoxy(24,5);
scanf("%lf", &a);
gotoxy(24,9);
scanf("%lf", &b);
c = (a-b);
gotoxy(24,12);
printf("***** RESULTADOS*****");
gotoxy(24,14);
getch();
return (c);
double c;
clrscr();
gotoxy(24,5);
printf("****** MULTIPLICACION ******");
gotoxy(24,7);
scanf("%lf", &a);
gotoxy(24,9);
scanf("%lf", &b);
c = a * b;
gotoxy(24,12);
printf("***** RESULTADOS*****");
gotoxy(24,14);
return (c);
double c;
clrscr();
gotoxy(24,5);
gotoxy(24,7);
scanf("%lf", &a);
gotoxy(24,9);
scanf("%lf", &b);
c = a / b;
gotoxy(24,12);
printf("***** RESULTADOS*****");
gotoxy(24,14);
getch();
return (c);
double c;
clrscr();
gotoxy(24,5);
printf("****** RAIZ CUADRADA ******");
gotoxy(24,7);
c = sqrt (a);
gotoxy(24,12);
printf("***** RESULTADOS*****");
gotoxy(24,14);
getch();
return (c);
void exit()
clrscr();
gotoxy(15,10);
gotoxy(11,12);
gotoxy(10,14);
(quejas,felicitaciones ,etc..)");
gotoxy(18,16);
");
getch();