ATM Program
Hello guys, in this post I am going to give you a practice program which is an ATM program it is very simple which not include any graphics.
so let us move on to the program.
Source code =
#include<stdio.h>
#include<conio.h>
void main()
{
float p,t;
float r=7.5;
int pas;
printf("\n\n\t\t\t\t\t\t Welcome to our bank");
printf("\n\n\t Please insert your card");
printf("\n\n\t Card is inserted");
printf("\n\n\t enter the password= ");
scanf("%d",&pas);
if(pas==1234)
{
printf("\n\t password is correct");
}else
{
printf("\n\t password is invalid");
exit(0);
}
printf("\n\n\t enter the amount you want to take on loan= ");
scanf("%f",&p);
printf("\n\t Rate of interest= %f",r);
printf("\n\n\t enter the time in years= ");
scanf("%f",&t);
float si=(p*r*t)/100;
float ans=si+p;
printf("\n\tamount will be return by you after given time= %f",ans);
printf("\n\n\t\t\t\t\t\t|| thank u visit again ||");
}
my youtube video for more information =
No comments:
Post a Comment