#include<stdio.h> int main() { int p,r,t,int_amt; printf("Input principle, Rate of interest & time to find simple interest: \n"); scanf("%d%d%d",&p,&r,&t); int_amt=(p*r*t)/100; printf("Simple interest = %d",int_amt); return 0; }
Output
Input Data: p = 10000, r = 10% , t = 12 year Input principle, Rate of interest & time to find simple interest: Simple interest = 12000