Write a C program for Simple Interest with using input function
Program:-
#include <stdio.h>
#include <conio.h>
void main()
{
int SI, P, R,T;
clrscr();
printf("Enter the value of P,R,T ");
scanf("%d%d%d",&P,&R,&T);
SI=(P*R*T)/100;
printf("%d",SI);
getch();
}
Output:-
input:-
Enter the value of P R T
P=10
R=5
T=2
Enter the value of P R T
P=10
R=5
T=2
output:-
1
1
0 comments:
Post a Comment