Simple interest C program

It’s a Simple interest C program that inputs rate of interest, time duration and principal amount from the user, then calculate simple interest, and print result on the screen.

To understand this program, it’s better you should know the following topics:

Program (1): to find the simple interest.

#include<stdio.h>
#include<conio.h>
void main()
{
int prin, rate, time, si;
printf("Enter principal, Rate of interest & Time: ");
scanf("%d %d %d", &prin, &rate, &time);
//calculating simple interest
si=(prin*rate*time) / 100;
printf(" simple interest = %d ",si);
getch();
}

Output (1)

Enter principal, Rate of interest & Time: 1000
2
5
 simple interest = 100

Published by

Electrical Workbook

We provide tutoring in Electrical Engineering.

Leave a Reply

Your email address will not be published. Required fields are marked *