Menu

Add Topic

C Programming

waiting answer July 12, 2021

Simple Interest Program in C

Answers
January 20, 2021

Program Description: C Program to Find the Simple Interest

    #include<stdio.h>
    int main()
    {
        int p,rate_of_interest,tm,si_interst;
        printf("Enter the principal Amount: ");
        scanf("%d",&p);
        printf("Enter the Rate of interest: ");
        scanf("%d",&rate_of_interest);
        printf("Enter the time: ");
        scanf("%d",&tm);
        si_interst=(p*rate_of_interest*tm)/100;
        printf("Simple intrest= %d",si_interst);
        return 0;
    }

OUTPUT

        Enter the principal Amount: 1000
        Enter the Rate of interest: 3
        Enter the time: 2
        Simple intrest= 60    

 

0 0

Please Login to Post the answer

Leave an Answer