Program to Calculate simple interest.

 #include <stdio.h>


int main()

{

    float p,r,t,SI;

    printf("enter value of p");

    scanf("%f",&p);

    printf("enter value of r");

    scanf("%f",&r);

    printf("enter value of t");

    scanf("%f",&t);

    SI=p*r*t/100;

    printf("The simple interest is%f",SI);


    return 0;

}

No comments:

Post a Comment

Programming in C Language

  PROGRAM LIST TO BECOME PRO IN C    😍😍😍            PRACTICE SETS                                                        UNIT -1  👇   IN...