Learn Programming Technique C to Master Skills - Explanation of First Program of C Language in Flowchart

  • 2 days ago
Transcript
00:00Hello everyone, this is Sandeep. Today I'm going to start the first program of C and
00:11I'm going to make this program in flowchart. I'm going to start with the sequence construct
00:22and I'm going to make the program of simple interest. First I will explain the program
00:29in flowchart then I'm going to implement the same program in C. So to calculate the
00:37simple interest I have to take the variables. So these are the variables s for the simple
00:42interest, p for principle, r for rate of interest, t is for time. So when I declare this variable
00:52at the run time when the program will run at that time these memory locations that is
01:02s, p, r, and t. These sub locations are going to allocate or we can say are going to create
01:11inside the random access memory. So random access memory is a bigger location within
01:18which these four locations are going to allocate. Then I have defined the value, I have defined
01:26the value of p that is 1000, I have defined the value of t for time that is 3, for the
01:32rate of interest I have taken r and I have defined that is what 2. So I have initialized
01:36the value of p, r, t. So these are the values which are there inside p, r, and t. So I have
01:46initialized the value. Now I have applied the formula so the calculation work will take
01:51place and the resultant value is going to store inside s. So the resultant value is
01:57inside s. Then I have used what print s. So the resultant value which is there inside
02:05this sub location or we can say inside the memory location that is going to print on
02:14the screen. We will get the result. So whenever I will run this program, I will get the same
02:22result as I have initialized the value of p, t, and r. In the next video, I am going
02:31to implement this program in C. I am going to make the same program in C. Thanks for
02:39today.

Recommended