Skip to content
Programmingoneonone
Programmingoneonone
  • Home
  • CS Subjects
    • Internet of Things (IoT)
    • Digital Communication
    • Human Values
  • Programming Tutorials
    • C Programming
    • Data structures and Algorithms
    • 100+ Java Programs
    • 100+ C Programs
  • HackerRank Solutions
    • HackerRank Algorithms Solutions
    • HackerRank C problems solutions
    • HackerRank C++ problems solutions
    • HackerRank Java problems solutions
    • HackerRank Python problems solutions
Programmingoneonone

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 solutions

Post navigation

Previous post
Next post

Pages

  • About US
  • Contact US
  • Privacy Policy

Programing Practice

  • C Programs
  • java Programs

HackerRank Solutions

  • C
  • C++
  • Java
  • Python
  • Algorithm

Other

  • Leetcode Solutions
  • Interview Preparation

Programming Tutorials

  • DSA
  • C

CS Subjects

  • Digital Communication
  • Human Values
  • Internet Of Things
  • YouTube
  • LinkedIn
  • Facebook
  • Pinterest
  • Instagram
©2025 Programmingoneonone | WordPress Theme by SuperbThemes