Simple interests in c programming


#include<stdio.h>

#include<conio.h>

int main()

{

int p,r,t,pi;

printf("inter the value of principal,rate,time");

scanf("%d%d%d",&p,&r,&t);

Pi=(p*r*t)/100;

printf(" pi = %d",pi);

return 0;

}  

Output: inter the value of principal,rate,time 300

12

6

 pi = 216

Comments

Post a Comment

Popular posts from this blog

Reverse table in c programming.