Pages

Thursday, January 23, 2025

Calculate Simple Interest in C language

 #include<stdio.h>


int main() {

    int principal, t, rate;

    

    printf("Enter the Principal Rate: ");

    scanf("%d", &principal);

    

    printf("Enter the Time in years: ");

    scanf("%d", &t);

    

    printf("Enter the Rate: ");

    scanf("%d", &rate);

    

    int SI = (principal*t*rate)/100;

    printf("The Simple Interest is: %d", SI);

    

    


return 0;


}

CODED and Tested

No comments:

Post a Comment

how to become red on codeforces by Errichto Algorithms | explained simply in a blog

 Yes. I found an available transcript of the video and summarized it simply. The video is “How To Become Red Coder? (codeforces.com)” by Err...