Answers for "c program to find 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 %d\n", S);
}
Posted by: Guest on April-19-2021

Code answers related to "c program to find simple interest"

Code answers related to "C"

Browse Popular Code Answers by Language