Write a program to calculate simple interest (i = (prn)/100 ) i = Simple interest p = Principal amount r = Rate of interest n = Number of years

#include <stdio.h>

int main() 
{
 int n;
 float p, r, I;
 printf("\n Enter Amount p :");
 scanf("%f",&amp;p);
 printf("\n Enter Rate r :");
 scanf("%f",&amp;r);
 printf("\n Enter No of Years n :");
 scanf("%d",&amp;n);
 I = (p*r*n)/100;
 printf("\n Interest = %.2f",I);
 return 0;
}

Next practical link : Practical 4

Categories: GTU PRACTICALSPPS

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *