C program to calculate simple interest

C program to calculate simple interest

#include<stdio.h>
#include<conio.h>

void main()
{

float p,r,t,si;
clrscr(); //to clear the screen
printf(“Enter principal,rate and time;”);
scanf(“%f%f%f”,&p,&r,&t);
si=(p*r*t)/100;
printf(“nSI=%f”,si);
getch(); //to stop the screen
}

7 thoughts on “C program to calculate simple interest

  1. Sacchida Nanda Vishwakarma

    I want to use only two digits after decimal what i do ?

    Reply
  2. SANTHOSH BABU

    THANQ YOU BOSS,BEACUSE OF YOU I HAVE SUBMITTED ALL MY OS DIGITAL ASSIGNMENTS ON TIME.

    Reply

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.