Prictical - 10 - Write a program to find the Simple Interest.

Practical - 10

Aim: Write a program to find the Simple Interest..

 

Program:

#include <stdio.h>

#include <conio.h>

 

void main()

{

    clrscr();

    int p, r, t;

    float si;

 

    printf("Enter the Principle = ");

    scanf("%d", &p);

 

    printf("Enter the Rate = ");

    scanf("%d", &r);

 

    printf("Enter the Time = ");

    scanf("%d", &t);

 

    si = (p * r * t) / 100;

    printf("\nSimple Interest = %f", si);

 

    getch();

}

 

 

Output:

Enter the Principle = 100

Enter the Rate = 10

Enter the Time = 1

 

Simple Interest = 10.000000

 

Algorithm:

 

Step-1: START

Step-2: Declare p, r, t, si.

Step-3: Enter the value of p, r, t.

Step-4: si = ( p * r * t ) / 100

Step-5: Display si.

Step-6: STOP.

 

Flowchart:

 


Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.