Answers for "Write a C program to calculate the simple interest"

C
0

c program to find simple interest

//Simple Interest
#include <stdio.h>
int main(){
    int P, R, T, S;
    printf("Enter the principle: n");
    scanf("%d", &P);
    printf("Enter the rate: n");
    scanf("%d", &R);
    printf("Enter the time(in Years): n");
    scanf("%d", &T);

    S = (P * R/100 * T) / 100 ;
    printf("Simple interest is %dn", S);
}
Posted by: Guest on April-19-2021

Code answers related to "Write a C program to calculate the simple interest"

Code answers related to "C"

Browse Popular Code Answers by Language