C Language-ATM Machine

Source: Internet
Author: User

#include <stdio.h>
void Main ()
{
int i=0,j=0,many=100000,many1=100000,num,num1,num2,num4=0,s=0,s1=0;
int a=123;
int b;
printf ("");
for (i;i<50;i++)
{
printf ("*");
}
printf ("\ n");
printf ("");
printf ("*");
for (i=0;i<48;i++)
{
printf ("");
}
printf ("*");
printf ("\ n");
printf ("");
printf ("*");
for (i=0;i<48;i++)
{
printf ("");
}

printf ("*");

printf ("\ n");
printf ("");
printf ("*");
for (i=0;i<20;i++)
{
printf ("");

}
printf ("Welcome to the use of love to deposit ATM");
for (i=0;i<9;i++)
{
printf ("");

}
printf ("*");

printf ("\ n");
printf ("");
printf ("*");
for (i=0;i<48;i++)
{
printf ("");
}
printf ("*");
printf ("\ n");
printf ("");
printf ("*");
for (i=0;i<48;i++)
{
printf ("");
}

printf ("*");

printf ("\ n");
printf ("");
printf ("*");
for (i=0;i<48;i++)
{
printf ("");
}
printf ("*");
printf ("\ n");
printf ("");
printf ("*");
printf ("Producer: Jiang Tao");
for (i=0;i<9;i++)
{
printf ("");
}
for (i=0;i<27;i++)
{
printf ("");
}
printf ("*");
printf ("\ n");
printf ("");
printf ("*");
printf ("Time: 2014-8-20");
for (i=0;i<33;i++)
{
printf ("");
}
printf ("*");
printf ("\ n");
printf ("");
printf ("*");
for (i=0;i<48;i++)
{
printf ("");
}

printf ("*");
printf ("\ n");
printf ("");
printf ("*");
for (i=0;i<48;i++)
{
printf ("");
}

printf ("*");
printf ("\ n");
printf ("");
for (i=0;i<50;i++)
{
printf ("*");
}
printf ("\ n");
printf ("\ n");
for (i=0;i<3;i++)
{
printf ("Please enter password:");
scanf ("%d", &b);
if (b<a| | B&GT;A)

{
printf ("Password is wrong, please re-enter!") \ n ");
}

}

if (i>3)
{

printf ("Service off, \ n");
return 0;
}



System ("CLS");




printf ("1, balance enquiry \ n");
printf ("2, withdrawals \ \");
printf ("3, exit \ n");
printf ("Please enter the action you requested:");
scanf ("%d", &num);
System ("CLS");


Switch (NUM)
{
Case 1:
printf ("1, RMB account \ n");
printf ("2, FX account");
scanf ("%d", &num1);
Switch (NUM1)
{
Case 1:
printf ("Your current balance is:%d Yuan", many);
Break
Case 2:
printf ("You have $:%d", many1);
Break
}
Break

Case 2:
printf ("1, RMB account");
printf ("2, FX account");
scanf ("%d", &num2);
System ("CLS");
Switch (NUM2)
{
Case 1:
printf ("Please enter the withdrawal amount:");
scanf ("%d", &s);
printf ("Balance:%d\n", many-s);
printf ("Please, take care of that black guy!! ");
Break
Case 2:
printf ("Please enter the number of money:\n");
scanf ("%d", &s1);
printf ("The Balance of:%d\n", many1-s1);
printf ("Take care!be Care of thief!\n");
Break
}
Break


Case 3:
printf ("Thank you for your use, look forward to your next visit!") ");
return 0;
}

}

C Language-ATM Machine

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.