Saturday, March 23, 2019

WRITE A PROGRAM FOR SIMPLE INTEREST


BACHELOR OF COMPUTER APPLICATION (B.C.A.) FIRST SEMESTER


Here you will get simple C program 
C Language Program for Simple Interest.
IT IS THE SMALLEST LOGIC USED FOR CODING OF THIS PROGRAM.
IN WHICH YOU CAN CREATE OWN VARIABLES AND FUNCTIONS.
User will input three different numbers,
then their Simple Interest will be calculated and
finally it will be printed on screen.

The program coding is given below.

#include<stdio.h>
#include<conio.h>
void main()
{
    int p,r,n,si;
    clrscr();
    printf("Enter Principle, Rate of Interest, Number's of Year are = ");
    scanf("%d %d %d",&p,&r,&n);
    si=(p*r*n)/100;
    printf("Simple Interest is = %d",si);
    getch();    
}
Output will be given after you compile it.

No comments:

Post a Comment