1+ // Make a structure to store Bank Account Information of a customer of ABC Bank. Also, make an alias for it.
2+ #include <stdio.h>
3+ typedef struct account
4+ {
5+ char account_number [20 ];
6+ char account_type [10 ];
7+ char key [10 ];
8+ char name [20 ];
9+ char blood [10 ];
10+ char nid [20 ];
11+ char phone [20 ];
12+ char address [50 ];
13+ char profession [20 ];
14+ char nominee_name [20 ];
15+ char nominee_blood [10 ];
16+ char nominee_nid [20 ];
17+ char nominee_phone [20 ];
18+ char nominee_profession [10 ];
19+ char nominee_relation [10 ];
20+ int credit_history ;
21+ } data ;
22+
23+ void printInfo (data customer )
24+ {
25+ printf ("Customer details :\n\n" );
26+ printf ("Account no : %s\n" , customer .account_number );
27+ printf ("Account type : %s\n" , customer .account_type );
28+ printf ("Account key : %s\n" , customer .key );
29+ printf ("Account holder name : %s\n" , customer .name );
30+ printf ("Account holder blood group : %s\n" , customer .blood );
31+ printf ("Account holder nid no : %s\n" , customer .nid );
32+ printf ("Account holder phone no : %s\n" , customer .phone );
33+ printf ("Account holder address : %s\n" , customer .address );
34+ printf ("Account holder profession : %s\n" , customer .profession );
35+ printf ("Account nominee name : %s\n" , customer .nominee_name );
36+ printf ("Account nominee blood group : %s\n" , customer .nominee_blood );
37+ printf ("Account nominee nid no : %s\n" , customer .nominee_nid );
38+ printf ("Account nominee phone no : %s\n" , customer .nominee_phone );
39+ printf ("Account nominee profession : %s\n" , customer .nominee_profession );
40+ printf ("Account nominee relation : %s\n" , customer .nominee_relation );
41+ printf ("Account holder credit history : %d credit\n" , customer .credit_history );
42+ }
43+
44+ int main ()
45+ {
46+ data customer1 = {"ABC12094354" , "Regular" , "ky2#1@8*z" , "Nazmus Sakib" , "A+" , "45123413121" , "(+880)1881296235" , "65/5 Kadamtala, East Basabo, Dhaka-1214" , "Software Engineer" ,
47+ "Umme Kulsum" , "AB+" , "49213845320" , "+8801907232841" , "Housewife" , "Mother" , 180 };
48+ printInfo (customer1 );
49+
50+ return 0 ;
51+ }
0 commit comments