THE MOST EASIEST CODE IS SIMPLE INTEREST CALCULATION.
THE FOLLOWING INTEREST SHOWS SIMPLE INTEREST:
#include<stdio.h>
#include<conio.h>
void main()
{
float p,r,int r;
int n;
clrscr();
printf("\nEnter the principle amount\n");
scanf("%f",&p);
printf("\nEnter the no of years\n");
scanf("%d",&n);
printf('"\nEnter the rate of interest\n');
scanf("%f",&r);
intr=p*n*r/100;
printf("SIMPLE INTEREST: %d\n%f",int);
getch();
}
TYPE LIKE THIS:
OUT PUT IS AS FOLLOWS:
No comments:
Post a Comment