Programa Calculadora

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Programa Calculadora as PDF for free.

More details

  • Words: 210
  • Pages: 2
#include<stdio.h> #include int main() { int x = 0; int y = 0; int z = 0; int a = 0; int b = 0; int suma = 0; int multiplicacion = 0; int resta = 0; int division = 0; int valor= 0; int resul= 0; gotoxy( 10,9 ); printf("Para Suma Ingrese 1, Para Resta Ingrese 2, Para Multiplicacion Ingrese 3, Para Division Ingrese 4"); scanf("%i", &valor);

}

if (valor==1) { resul= x+y+z+a+b; if (valor==2) { resul= x-y-z-a-b;

} }

if (valor==3) { resul= x*y*z*a*b; if (valor==4) { resul= x/y/z/a/b;

} gotoxy( 10,11 ); printf("Introdusca gotoxy( 10,14 ); scanf("%i", &x); gotoxy( 10,15 ); printf("El tipo de gotoxy( 10,16 ); printf("Introdusca gotoxy( 10,17 ); scanf("%i", &y); printf("El tipo de gotoxy( 10,18 ); printf("Introdusca gotoxy( 10,19 ); scanf("%i", &z); gotoxy( 10,20 ); printf("El tipo de gotoxy( 10,21 ); printf("Introdusca gotoxy( 10,22 ); scanf("%i", &a); gotoxy( 10,23 ); printf("El tipo de gotoxy( 10,24 ); printf("Introdusca gotoxy( 10,25 );

Primer Numero");

int ocupa %i bytes/n", sizeof(int)); Segundo Numero"); int ocupa %i bytes/n", sizeof(int)); Tercer Numero");

int ocupa %i bytes/n", sizeof(int)); Cuarto Numero");

int ocupa %i bytes/n", sizeof(int)); Quinto Numero");

scanf("%i", &b); gotoxy( 10,26 ); printf("El tipo de int ocupa %i bytes/n", sizeof(int)); gotoxy( 10,30 ); printf("El resultado es %i", resul); return 0; }

Related Documents

Programa Calculadora
June 2020 2
Calculadora
October 2019 56
Calculadora
November 2019 36
Calculadora
August 2019 49
Calculadora
November 2019 50
Calculadora
November 2019 28