Skip to content
Programming101
Programming101

Learn everything about programming

  • Home
  • CS Subjects
    • IoT – Internet of Things
    • Digital Communication
    • Human Values
  • Programming Tutorials
    • C Programming
    • Data structures and Algorithms
  • HackerRank Solutions
    • HackerRank Algorithms Solutions
    • HackerRank C problems solutions
    • HackerRank C++ problems solutions
    • HackerRank Java problems solutions
    • HackerRank Python problems solutions
Programming101
Programming101

Learn everything about programming

C Program to find the simple Interest

YASH PAL, 31 July 2024

In this tutorial, we are going to write a C Program to find the simple interest in C Programming with practical program code and step-by-step full complete explanation.

C Program to find the simple Interest

C Program to find the simple Interest.

#include <stdio.h>
#include <conio.h>

void main()
{
	int p, r, t, si;

	clrscr();

	printf("Enter principle, Rate of interest & time to find simple interest: ");

	scanf("%d%d%d",&p,&r,&t);

	si = (p*r*t)/100;

	printf("Simple intrest = %d", si);

	getch();
}

Output

Enter principle, rate of interest & time to find simple interest: 500
5
2
Simple interest = 50

In this Above C Program First, we include all the necessary header files that we need to use in our program. and we define the main function. after that, we define four integer variables p, r, t, si, and use the clrscr() function to clear the output screen.

After that, we use the printf() function to print the message on the output screen. and then scanf() function to take input and store them in a variable. after that we use the (p*r*t)/100 formula to find the simple interest of the given input values and then using the printf() function we print the value on the screen.

c coding problems

Post navigation

Previous post
Next post
  • How AI Is Revolutionizing Personalized Learning in Schools
  • GTA 5 is the Game of the Year for 2024 and 2025
  • Hackerrank Day 5 loops 30 days of code solution
  • Hackerrank Day 6 Lets Review 30 days of code solution
  • Hackerrank Day 14 scope 30 days of code solution
©2025 Programming101 | WordPress Theme by SuperbThemes