Skip to player
Skip to main content
Search
Connect
Watch fullscreen
Like
Bookmark
Share
More
Add to Playlist
Report
Learn Programming Technique C to Master Skills - Explanation of Second Program
Tutorials Arena
Follow
1 year ago
Category
📚
Learning
Transcript
Display full video transcript
00:00
Hi, I'm Sandeep.
00:05
Today I'm going to make the program of simple interest in which I'm going to input the values
00:09
from the keyboard.
00:11
I'm going to input the values of principal rate of interest and time.
00:16
I have explained this program in flowchart in my last video.
00:19
Okay, this is the flowchart of it in which I have input the principal rate of interest
00:25
and time.
00:26
Calculation work took place and the resulted value stored inside has been displayed.
00:32
Now I'm going to make the same program.
00:34
I'm going to implement the same program in C.
00:37
So I'll make this program in the code blocks.
00:41
Let us see.
00:42
First of all, I will go to file, then new, then empty file.
00:49
I will save it also.
00:50
So file, then I will come towards save file, I will give it a name what prgn2, something
00:58
like this, then what save.
01:01
Use what hash include stdio.h, then I will use what int main and inside it, I will take
01:14
the variables that is int s, p, r, t.
01:22
Next step will be what to display a message that what I'm going to input that is input
01:30
principal rate of interest and time.
01:42
So input the values from the next line, so I will use here slash n at the end of the
01:48
statement also, at the end of the message.
01:52
I will use what is scanf and inside it, %d, %d, %d.
02:00
So I've used the type specifier for three times as I have to input three values, one
02:09
inside p, another one inside r.
02:13
So with and sign, I will use what and p, and r, and what, and t.
02:27
Now at the end, I will use what semicolon, then I will give a formula s equal to p into
02:35
r into t upon 100.
02:40
I have calculated the simple interest, I have to display it, so printf slash n simple interest
02:53
is %d, at the end what comma s, and then what return 0.
03:05
I will save the program by use of control s, I've saved it.
03:17
So now the program is ready, I will click on this build button and see if there's any
03:25
error or not, so it's showing zero error, zero warning, and then I'm going to click
03:30
on run.
03:31
It will ask me to input the principal, suppose I input 2000, and rate of interest 3, and
03:38
time t, when I press enter, it's going to calculate and display the simple interest.
03:43
If I again run this program, I can give different values like principal 5000, rate of interest
03:53
4, time what 2, and when I press it, it's going to give me another result, a different
03:59
result, and it's calculated the simple interest.
04:03
So I hope you understand the program, in the next video I'm going to explain something
04:10
else.
04:11
Thanks.
Be the first to comment
Add your comment
Recommended
2:11
|
Up next
Learn Programming Technique C to Master Skills - Explanation of Second Program in Flowchart
Tutorials Arena
1 year ago
8:04
Learn Programming Technique C to Master Skills - File Handling Second Program
Tutorials Arena
1 year ago
9:09
Learn Programming Technique C to Master Skills - Second Program( Call by Reference)
Tutorials Arena
1 year ago
11:41
Learn Programming Technique C to Master Skills - Second Program of Array
Tutorials Arena
1 year ago
8:07
Learn Programming Technique C to Master Skills - Loop with if Statement Second Program
Tutorials Arena
1 year ago
5:23
Learn Programming Technique C to Master SkillsCharacter String Second Program
Tutorials Arena
1 year ago
10:08
Learn Programming Technique C to Master Skills - Seventh Program of Function - II
Tutorials Arena
1 year ago
10:31
Learn Programming Technique C to Master Skills - Explanation of Pointer - II
Tutorials Arena
1 year ago
8:08
Learn Programming Technique C to Master Skills - First Program of Function
Tutorials Arena
1 year ago
5:14
Learn Programming Technique C to Master Skills - Single If Statement Program Explanation
Tutorials Arena
1 year ago
13:04
Learn Programming Technique C to Master Skills - Double Dimension Array Program
Tutorials Arena
1 year ago
6:03
Learn Programming Technique C to Master Skills - Linked List ( Second Program)
Tutorials Arena
1 year ago
11:15
Learn Programming Technique C to Master Skills - Third Program of Function
Tutorials Arena
1 year ago
5:02
Learn Programming Technique C to Master Skills - Third Program of Loop
Tutorials Arena
1 year ago
7:04
Learn Programming Technique C to Master Skills - Recursive Function - II
Tutorials Arena
1 year ago
2:41
Learn Programming Technique C to Master Skills - Explanation of First Program of C Language in Flowchart
Tutorials Arena
1 year ago
5:59
Learn Programming Technique C to Master Skills - File Handling Second Program (Continue..)
Tutorials Arena
1 year ago
12:25
Learn Programming Technique C to Master Skills - Call By Reference Program
Tutorials Arena
1 year ago
12:06
Learn Programming Technique C to Master Skills - Continuous If Statement Program
Tutorials Arena
1 year ago
3:52
Learn Programming Technique C to Master Skills - Second Program of Loop (Flow Chart)
Tutorials Arena
1 year ago
5:27
Learn Programming Technique C to Master Skills - Sixth Program of Function
Tutorials Arena
1 year ago
9:20
Learn Programming Technique C to Master Skills - Union Program
Tutorials Arena
1 year ago
7:52
Learn Programming Technique C to Master Skills - Second Program of Function ( Return Value ) - II
Tutorials Arena
1 year ago
10:48
Learn Programming Technique C to Master Skills - Eighth Program of Function
Tutorials Arena
1 year ago
4:51
Learn Programming Technique C to Master Skills - Seventh Program of Function - I
Tutorials Arena
1 year ago
Be the first to comment