Breaking News

Photo in News

simple interest- c program

This program will ask for the Pricipal, rate and time and it will gives the simple interest as output.

/*
Developed by deepak anand.
For more programs,
visit programming-stuff-4-u.blogspot.in
*/
//WAP to calculate Simple interest
#include<stdio.h>
#include<conio.h>
void main()
{
 int amount,rate,time,si;
 clrscr();
 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 Intrest : %d",si);
 getch();
}

No comments:

Total Pageviews

  • Posts
  • Comments
  • Pageviews
Designed By Blogger Templates