Program to Find the Simple Interest

 #include<stdio.h>

int main()

{

// Program to find the simple interest //

int p, r, n, si;

printf("Enter Principle Ammount : ");

scanf("%d", &p);

printf("Enter Rate of Interest : ");

scanf("%d", &r);

printf("Etner No of Years : ");

scanf("%d", &n);

si = p*r*n/100;

printf("\nSimple Interest = %d", si);

return 0;

// Program Succefully executed without any error. //

}

Comments

Popular posts from this blog

Program to Find the average of three numbers by Akshay Palampalle