Here is the program to calculate a simple interest

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #include "stdio.h" #include "conio.h" void main() { float principal,rate,time; float simpleInterest; printf("\nEnter the principal amount "); scanf("%f",&principal); printf("\nEnter the rate of interest "); scanf("%f",&rate); printf("\nEnter the time duration "); scanf("%f",&time); simpleInterest=(principal*rate*time)/100; printf("\nThe simple interest is %f",simpleInterest); getch(); } |

**Output:**

Enter the principal amount 50000 Enter the rate of interest 5 Enter the time duration 2 The simple interest is 5000 |

#include

void main()

{

int A[20], N, Temp, i, j;

clrscr();

printf(“\n\n\t ENTER THE NUMBER OF TERMS…: “);

scanf(“%d”, &N);

printf(“\n\t ENTER THE ELEMENTS OF THE ARRAY…:”);

for(i=0; i<N; i++)

{

gotoxy(25,11+i);

scanf("\n\t\t%d", &A[i]);

}

for(i=1; i<N; i++)

{

Temp = A[i];

j = i-1;

while(Temp=0)

{

A[j+1] = A[j];

j = j-1;

}

A[j+1] = Temp;

}

printf(“\n\tTHE ASCENDING ORDER LIST IS…:\n”);

for(i=0; i<N; i++)

printf("\n\t\t\t%d", A[i]);

getch();

}

//This program is for finding The simple iterest

#include

main()

{

int P,R,T;

int A ;

printf(“Enter the value of P,R and T \n”);

scanf(“%d %d %d”,&P,&R,&T);

A = (P*R*T)/100;

printf(“The simple interest is %d”, A);

}

Hi i have program related to this can i upload here??

int main() {

int amount, rate, time, si;

printf(“\nEnter Principal Amount : “);

scanf(“%d”, &amount);

printf(“\nEnter Rate of Interest : “);

scanf(“%d”, &rate);

printf(“\nEnter Period of Time : “);

scanf(“%d”, &time);

si = (amount * rate * time) / 100;

printf(“\nSimple Interest : %d”, si);

return(0);

}