• 2 months ago
Transcript
00:00Hello everyone, this is Sandeep. In this program I am going to input the values of principal,
00:08rate of interest and time. The last program which I have created in that I have given
00:15the fixed value of principal, rate of interest and time. In this program I am going to input
00:23the values from the keyboard. I am going to input the principal from the keyboard, I am
00:28going to input the rate of interest and I am going to input the time. Let us understand
00:33the program in flowchart. I have taken the four variables s, p, r and t. So inside the
00:39random access memory four sub locations are going to create that is what p, r, t and s.
00:47And I am going to input the principal, rate of interest and time. So when I input the
00:51principal suppose I input 2600, so it's going to store inside p and I will input what 3,
01:01so that is going to store inside r and then I am going to store what 2, so that is going
01:05to store inside t. So time is what 2. Then the calculation will take place and the resulted
01:12value is going to store inside s for the simple interest. So this is the resulted value and
01:18then the result is going to display on the screen. So this is the program that is going
01:23to display. I hope you understand how to input the values and then to run the program. If
01:35I again run this program and then what will happen again the four locations are going
01:41to create s, p, r, t okay and then I will input the values in p, r and t. The calculation
01:49work will take place and the resulted value is going to store inside s. So I will get
01:54a different result, I will get a different simple interest and then simple interest is
01:59going to display okay. So I am going to implement this program in C in my next video. Thanks
02:09for today.

Recommended