Write a C Program to find Simple Interest



Simple Interest, Sumit Kar, Timus Rak





#include<stdio.h>


void main()


{


 float p;


 float ir,t;


 float in;





  printf("Principle amount : ");


  scanf("%f",&p);


  printf("\nInterest : ");


  scanf("%f",&ir);


  printf("\nTime (in year) : ");


  scanf("%f",&t);


  in=p*ir*t/100;


  printf("\nYou will get interest : %.2f",in);








}


0 Comments