1//Simple Interest
2#include <stdio.h>
3int main(){
4 int P, R, T, S;
5 printf("Enter the principle: \n");
6 scanf("%d", &P);
7 printf("Enter the rate: \n");
8 scanf("%d", &R);
9 printf("Enter the time(in Years): \n");
10 scanf("%d", &T);
11
12 S = (P * R/100 * T) / 100 ;
13 printf("Simple interest is %d\n", S);
14}