Aim:-Write a program to calculate simple interest.
Source Code
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
int principal,time,rate,S;
printf("Enter the principal value=");
scanf("%d",&principal);
printf("Enter the time =");
scanf("%d",&time);
printf("Enter the Rate=");
scanf("%d",&rate);
S=(principal*time*rate)/100;
printf("Simple interest is=%d",S);
getch();
}
output
Related Post:-
🔥 How to Use Pen Drive As A Ram in Hindi
|
0 Comments
How did you like it, please comment by posting my post