Write a program to accept the details of the banking account using structure

//this is a program to accept the details of the banking account
#include<stdio.h>
#include<conio.h>
void main()
{
struct account
{
char name[20];
long int accno;
long int balance;
}a;

printf("\n\nEnter the Name of The holde, account no. and balance: ");
scanf("%s%ld%ld",a.name,&a.accno,&a.balance);

printf("\n\nNme of the Account Holder=%s\n\nAccount                           Number=%ld\n\nBalance=%ld",a.name,a.accno,a.balance);                   
getch();

}

Previous
Next Post »