programa de suma y multiplicacion de numeros enteros
DESCRIPTION
PROGRAMA BASICO BASADO EN C++ PARA SUMAR Y MULTIPLICAR NUMEROS ENTEROS Y ASI VERIFICAR SUS FUCIONES.TRANSCRIPT
![Page 1: PROGRAMA DE SUMA Y MULTIPLICACION DE NUMEROS ENTEROS](https://reader036.vdocuments.us/reader036/viewer/2022082811/558e92321a28abaa758b4621/html5/thumbnails/1.jpg)
//PROGRAMA QUE SUMA Y MULTIPLICA 2 NUMEROS DECIMALES //USANDO FUNCIONES. ARGENIS GIL.UFT
#include <stdio.h>
#include <cmath.h>
#include <stdlib.h>
float uno; //primer numero
float dos; //segundo numero
float suma_total;
float mult_total;
void operaciones();
float suma(float a, float b);
float multiplicacion(float a, float b);
main(){
char op;
while(op!='x' && op!='X'){
clrscr();
printf("Presione 1 para iniciar el programa \n");
printf("Presione 'x' para Salir \n");
op=getchar();
switch(op){
case '1':
operaciones();
break;
}
![Page 2: PROGRAMA DE SUMA Y MULTIPLICACION DE NUMEROS ENTEROS](https://reader036.vdocuments.us/reader036/viewer/2022082811/558e92321a28abaa758b4621/html5/thumbnails/2.jpg)
}
return 0;
}
float suma(float a, float b)
{
float x;
x = a + b;
return x;
}
float multiplicacion(float a, float b)
{
float x;
x = a * b;
return x;
}
void operaciones()
{
float a;
float b;
clrscr();
printf("Introduzca el primer numero: ");
scanf("%f",&a);
printf("Introduzca el segundo numero: ");
scanf("%f",&b);
![Page 3: PROGRAMA DE SUMA Y MULTIPLICACION DE NUMEROS ENTEROS](https://reader036.vdocuments.us/reader036/viewer/2022082811/558e92321a28abaa758b4621/html5/thumbnails/3.jpg)
suma_total = suma(a,b);
mult_total = multiplicacion(a,b);
printf("La multiplicacion de los dos numeros es: %f \n",mult_total);
printf("La multiplicacion de los dos numeros es: %f \n",suma_total);
}