This is related to c programing, this qustion must be ans in the c program only
8.Define an algorithm. Write a flow chart to calculate simple interest.?
ALGORITHM IS A STEP BY step procedure written in simple english language to find the solution of a problem....
PROGRAM FOR SIMPLE INTEREST:
#INCLUDE%26lt;STDIO.H%26gt;
#include%26lt;conio.h%26gt;
main()
{
int p,t,r,simpintr;
printf("give the values of p,t ,r");
scanf(%d,%d,%d",%26amp;p,%26amp;t,%26amp;r);
simpintr=((p*t*r)/100);
printf("\n simple interest is %d",simpintr);
getch():
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment