Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
//OPERADOR DE MATEMTICAS//
#include<iostream.h>
#include<conio.h>
inta,b=0;
floats,rm=0;
void main()
clrscr();
gotoxy(20,4);cout<<"OPERACIN MATEMATICA";
gotoxy(27,7);cin>>a;
gotoxy(29,9);cin>>b;
s=a+b;
rm=a*b;
gotoxy(31,11);cout<<s;
gotoxy(33,13);cout<<"rm;
getch();
1-6=dividirlo
3-5=multiplicarlo
2-4=sumarlo
#include<conio.h>
Intn1,n2,n3,n4,n5,n6=0;
Float rdvd,rmult,rsuma,rt=0;
Voidmain ()
clrscr();
gotoxy(25,2);cout<<CALCULO MATEMTICO;
gotoxy(22,6);cin>>n1;
gotoxy(28,8);cin>>n2;
gotoxy(26,10);cin>>n3;
gotoxy(28,12);cin>>n4;
gotoxy(30,14);cin>>n5;
gotoxy(31,16);cin>>n6;
divd=n1/n6;
mult=n3*n5;
suma=n2+n4
rt=divd-mult-suma
gotoxy(33,18);cout<<rdivd;
gotoxy(35,20)cout<<rmult;
gotoxy(39,24);cout<<rt;
getch();
#include<iostream.h>
#include<conio.h>
Char nu[20];
Int ,an,ac=0;
Float ed=0;
Void main()
Clrscr();
gotoxy(22,6);cin<<un;
gotoxy(24,7);cout<<Ingreso el ao de nacimiento;
gotoxy(25,9);cin>>an;
gotoxy(26,10);cout<<Ingreso el ao actual;
gotoxy(27,11);cin>>ac;
ed=an-ac;
gotoxy(30,14);cout<<ed;
getch();
#include<iostream.h>
#include<conio.h>
Inta,b=0;
Float re=0;
Voidmain()
Clrscr();
gotoxy(22,5);cin>>a;
gotoxy(25,8);cin>>b;
re=(a+b)/2
gotoxy(28,11);cout<<re;
getch();
#include<iostream.h>
#include<conio.h>
Char nom[30];
Int n1,n2,n3=0;
Float prof=0;
Void mai()
Clrscr();
gotoxy(16,6);cin>>nom;
gotoxy(18,8);cin>>n1;
gotoxy(22,14);cin>>n3;
prof=(n1+n2+n3)/3;
gotoxy(25,16);cout<<nom;
gotoxy(27,18);cout<<prof;
getch();
#include<iostream.h>
#include<conio.h>
charne[30];
define deciess=9.35/100;
ints,he,vh=0;
float sr=0;
voidmai()
clrscr();
gotoxy(12,7);cin>>ne;
gotoxy(13,8);cout<<Ingreso el sueldo ;
gotoxy(14,9);cin>>s;
gotoxy(16,11);cin>>he;
gotoxy(18,13);cin>>vh;
thg=he*vhe;
diess=s*9.35/100;
sr=s+thg-diess;
gotoxy(21,16);cout<<ne;
gotoxy(23,17);cout<<sr;
getch();
#include<iostream.h>
#include<conio.h>
char ne[30];
define diess=9.35/100;
Inth,vh,bon=0;
Float sr=0;
void main();
clrscr();
gotoxy(21.,4);cin>>ne;
gotoxy(22,5);cout<<Ingreso hora ;
gotoxy(23,16);cin>>h;
gotoxy(25,18);cin>>vh;
gotoxy(26,19);cout<<Ingreso bonificacion;
gotoxy(27,20);cin>>bon;
thg=th*vh;
diess=thg*9.35/100;
sr=thg-diess+bon;
gotoxy(29,23);cout<<ne;
gotoxy(32,33);cout<<diess;
getch();
#include<iostream.h>
#include<conio.h>
Int l1,l2=0;
float sup,perim=0;
void main()
clrscr();
gotoxy(21,5);cin>>l1;
gotoxy(23,7);cin>>l2;
sup=l1*l2;
perim=2*(l1+l2);
gotoxy(25,11); cout<<sup;
gotoxy(27,13);cout<<perim;
getch();
}
#include<iostream.h>
#include<conio.h>
Int=num=0;
vloatcn,cubn=0;
void main();
clrscr();
gotoxy(12,5);cout<<Ingreso nmero;
gotoxy(13,6);cin>>num;
num=(num)2;
num=(num)3;
gotoxy(16,10);cout<<cn;
gotoxy(18,12);cout<<cubo;
getch();
#include<iostream.h>
#include<conio.h>
Intx,p=0;
Float r=0;
Voidmain()
Clrscr();
{
gotoxy(10,5);cout<<Ingrese la cantidad;
gotoxy(11,6);cin>>x;
gotoxy(12,7);cout<<Ingrese el porcentaje;
gotoxy(13,8);ciin>>p;
r=(x*p)/100
gotoxy(16,12);cout<<r;
getch();
#include>iostream.h>
#include>conio.h>
Intcee=0;
float ced=0;
voidmain()
clrscr();
gotoxy (21,3);cin>>cee;
ced=(cee*1,25640)/1;
gotoxy(23,5);cout<<ced;
getch();
#include<iostream.h<
#include<conio.h>
Int n1,n2=0;
float s,p=0;
void main()
clrscr();
gotoxy(16,3);cin>>n1;
gotoxy(18,5);cin>>n2;
s=(n1+n2);
p=(n1*n2);
gotoxy(20,7);cout<<s;
gotoxy(22,9);cout<<p;
getch();
#include<iostream.h<
#include<conio.h>
Intep,em,eh=0;
float p=0;
voidmain()
clrscr();
gotoxy(11,6);cin>>ep;
gotoxy(12,7);cout<<INGRESE LA EDAD DE LA MADRE;
gotoxy(13,8);cin>>em;
gotoxy(15,10);cin>>eh;
p=(ep+em+eh)/3;
gotoxy(17,12);cout<<p;
getch();
#include<iostream.h<
#include<conio.h>
Intphl=0;
float kg,g=0;
void main( )
clrscr();
gotoxy(16,5);cin>>phl;
kg=l*0.453542;
g=kg*1000g;
gotoxy(18,9);cout<<kg;
gotoxy(20,11);cout<<g;
getch();
}
15.- Elaborar el siguiente programa la capacidad de una memoria
principal del computador viene dado en megabytes, transforma a
gigabytes y kilobyte visualizar su resultado.
#include<iostream.h<
#include<conio.h>
Intcm.mg=0;
Float gb,kb=0;
void main()
clrscr();
gotoxy(11,6);cin>>cmmg;
gb=cmmg/1024;
kb=cmmg*1024;
gotoxy(16,9);cout<<gb;
gotoxy(18,11);cout<<kb;
getch();
#include<iostream.h>
#include<conio.h>
Intx,y=0;
float ds,p=0;
void main()
clrscr();
{
gotoxy(20,3);cout<<Ingreso el primer nmero;
gotoxy(21,3);cin>>x;
gotoxy(23,5);cin>>y;
ds=2(x+y);
p=(x+y);
gotoxy(25,5);cout<<ds;
gotoxy(26,6);cout<<el promedioes
gotoxy(27,7);cout<<p;
getch();
#include<iostream.h>
#include<conio.h>
Intcd,ir,ta=0;
Float r=0;
Void main()
Clrscr ();
gotoxy(11,5);cin>>cd;
gotoxy(12,6);cout<<Ingrese el interes;
gotoxy(13,7);Lcin>>ir;
gotoxy(15,8);cin>>ta;
i=(c+r+t)/100;
getch();
#include<iostream.h>
#include<conio.h>
Intnh,nm=0;
voidmain()
clrscr();
gotoxy(16,3);cin>>nh;
gotoxy(18,5);cin>>nm;
ph=nh*100/te;
pm=nm*100/te;
gotoxy(19,7);cout<<ph;
gotoxy(21,8);<<pm;
getch();
#include<iostream.h>
#include<conio.h>
int h=0;
float s=0
void main()
clrscr();
gotoxy(15,2);cout<< Ingresarhoras;
gotoxy(16,3);cin>>h;
s=h*3.600;
gotoxy(17,4);cout<<s;
getch():
#include<iostream.h>
#include<conio.h>
Int n1,n2=0;
float s,r,m,d=0;
voidmain ()
Clrscr();
gotoxy(16,4);cin>>n1;
gotoxy(18,6);cin>>n2;
s=(n1+n2);
r=(n1-n2);
m=(n1*n2);
d=(n1/n2);
gotoxy(19,7);cout<<la suma es;
gotoxy(20,8);cout<<s;
gotxy(22,10);cout<<r;
gotoxy(24,12);cout<<m;
gotoxy(26,14);cout<<d;
getch();
#include<iostream.h>
#include<conio.h>
Char nu[30];
Intint,dp=0;
Float intg=0;
Void main()
Clrscr();
gotoxy(15,5);cin>>un;
gotoxy(16,6);cout<<Ingrese e el inters;
gotoxy(17,7);cin>>int;
gotoxy(19,9);cin>>dep;
intg=dep*int;
gotoxy(21,11);cout<<intg;
getch();
#include<iostream.h>
#include<conio.h>
Charna[30];
Intdeb,actc,lecci,aport,practl,ex=0;
Float st,prom=0;
Void main()
Clrscr();
gotoxy(20,2);cout<<NOTAS DE UN ALUMNO;
gotoxy(22,4);cin>>na;
gotoxy(23,5);cout<<Ingrese deberes;
gotoxy(24,6(;cin>>deb;
gotoxy(26,8);cin>>actc;
gotoxy(27,9);cout<<ingrese la leccion;
gotoxy(28,10);cin>>lecci;
gotoxy(29,11);cout<<ingrese aporte;
gotoxy(30,12);cin>>aport;
gotoxy(32,14);cin>>practl;
gotoxy(33,15);cout<<Ingrese examen;
gotoxy(34,16);cin>>ex;
st=deb+actc+lecci+aport+practl+ex;
gotoxy(37,17);cout<<el nombre es;
gotoxy(38,18);cout<<ne;
gotoxy(39,19);cout<<el promedioes;
gotoxy(40,20);cout<<prom;
getch();