19 January 2022

To Find Simple Interest

 # include<stdio.h>


int main()
{
   int principal = 100, rate= 6, year= 1;
   int simpleInterest= (principal*rate*year)/100;

   printf("The value of simple iterest is: %d\n", simpleInterest);


    return 0;
}

No comments:

Post a Comment