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);








}


Comments

Popular posts from this blog

Write a Program to Add two 3x3 Matrix using C

C program for Unit Conversion

Write a Program to Add two 5x5 Matrix using C