Write a program to find the simple interest in C Programming

Okay here again I am sharing another program to find out the simple interest

#include<stdio.h>
void  main()
{
   int amount, rate, time, si;
   printf("\nEnter Principal Amount : ");
   scanf("%d", &amount);

   printf("\nEnter Rate of Interest : ");
   scanf("%d", &rate);

   printf("\nEnter Period of Time   : ");
   scanf("%d", &time);

   si = (amount * rate * time) / 100;
   printf("\nSimple Interest : %d", si);
}


 

 

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.