In our program, we are dealing with data or performing specific operations on the data. Whenever needed, a simple call to the function is made. With the arrival of Structured programming repeated lines on the code were put into structures such as functions or methods. printf(“Account Number=%d,account_number)įor any further deposit or withdrawal operation – you will code repeat the same lines again and again. account_balance=account_balance-50Īgain, you need to display the account balance. Now the amount of 50 dollars is withdrawn. Printf(“Account Balance=%d,account_balance) printf(“Account Number=%d,account_number) Next you need to display account balance. A very elementary code of banking application in unstructured Programming language will have two variables of one account number and another for account balance int account_number=20 The earliest of all programming language were unstructured programming language. Suppose you want to create a Banking Software with functions like Let’s understand these 3 types with an example.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |