From 6de1a1f2797bbe50fc2cf1c5a876d5fd5dd117e7 Mon Sep 17 00:00:00 2001 From: mangelib Date: Fri, 13 Dec 2024 15:29:39 -0600 Subject: [PATCH] mangelib --- CONTRIBUTOR.md | 4 ++++ cajero.cpp | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 cajero.cpp diff --git a/CONTRIBUTOR.md b/CONTRIBUTOR.md index 6afa9db..955a432 100644 --- a/CONTRIBUTOR.md +++ b/CONTRIBUTOR.md @@ -33,3 +33,7 @@ #### Name: [Pratik Shirodkar](https://github.com/Pratik-Shirodkar) - Place: Goa, India - GitHub: [Pratik Shirodkar](https://github.com/Pratik-Shirodkar) + +### Name: [Angel M](https://github.com/mangelib) +- Place: Guadalajara, Mexico +- GitHub: [mangelib](https://github.com/mangelib) diff --git a/cajero.cpp b/cajero.cpp new file mode 100644 index 0000000..ac2015b --- /dev/null +++ b/cajero.cpp @@ -0,0 +1,46 @@ +#include +using namespace std; +//prueba pra git +int main(){ + //se decalaran las variables que hacen funcionar al cajero + float saldo_inicial =1000,retiro,deposito,transferencia; + int opc; + + do{ + cout<<"\t CAJERO ATM"<>opc; + + //Menu de opciones estructura + if(opc == 1){// consulta de saldo + + cout<<"Su saldo es de: "<>deposito; + saldo_inicial+=deposito; + + cout<<"Su saldo es de: "<>retiro; + saldo_inicial-=retiro; + + cout<<"Su saldo es de: "<>transferencia; + saldo_inicial-=transferencia; + + cout<<"Su saldo es de: "<