#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int op;
double mm,m,km,cm,pies,by,gb,mb,kb,l,cme,dme,me, s;
int main()
{
cout<<"Menu De Opciones"<<endl;
cout<<"CONVERSIONES"<<endl;
cout<<"1.Longitud"<<endl;
cout<<"2.informacion"<<endl;
cout<<"3.Capacidad"<<endl;
cout<<"4.Salir"<<endl;
cin>>op;
switch(op){
case 1:
cout<<"Longitud"<<endl;
cout<<"Ingresa los metros para convertir a longitud";
cin>>m;
km=m/1000;
cm=m*100;
mm=m*1000;
pies=km*3.28;
cout<<"La medida convertida en kilometros es:"<<km<<endl;
cout<< "La medida convertida en centimtros es:"<<cm<<endl;
cout<<"la medida convertida a mililitros es:"<<mm<<endl;
cout<<"La medida convertida a pies es:"<<pies<<endl;
break;
case 2:
cout<<"IMFORMACION"<<endl;
cout<<"Ingrese la medida en bytes";
cin>>by;
kb=by;
kb=by/1024;
mb=by/1048576;
gb=by/1073741824;
cout<<"La medida en kilobytes es:"<<kb<<endl;
cout<<"La medida en megabyte es:"<<mb<<endl;
cout<<"La medida en gygabytees:"<<gb<<endl;
break;
case 3:
cout<<"Capacidad"<<endl;
cout<<"ingrese la medida litros"<<endl;
cin>>l;
cme=l*100;
dme= l;
me=l/1000;
cout<<"la medida en cm3 es:"<<cme<<endl;
cout<<"la medida en decimetros cubicos es:"<<dme<<endl;
cout<<"la medida en m3 es"<<me<<endl;
break;
case 4:
break;
}
return 0;
}
No hay comentarios.:
Publicar un comentario