Write a program to calculate simple interest and amount. When P,R,T are given. | CODE WITH SHARAD

Write a program to calculate simple interest and amount. When P,R,T are given.

Written by Sharad Raj on 13th of March, 2018

BASIC PROGRAMS   C LANGUAGE PROGRAMS

PROGRAM CODE

 

#include<stdio.h>

#include<conio.h>

void main()

{

int t;

float p,r,si,a;

clrscr();

printf(enter the r principle,rate & time :);

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

si=p*r*t/100;

a=p+si;

printf(s.i = %f and amount  = %f,si,a);

getch();

}


Comments


Contact