Write a program to calculate simple interest.|Calculate the simple interest in C

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

How to Call From Laptop and Computer? and How to track any mobail number?

Post a Comment

0 Comments

Copyright (c) 2019 Designed by Shubham tiwari All Right Reseved