Monday, 18 May 2020

HOW TO WRITE SIMPLE INTEREST PROGRAM?

SIMPLE INTEREST PROGRAM IS VERY SIMPLE TO CODE. 

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:

SIMPLE INTEREST IN C




OUT PUT IS AS FOLLOWS:



No comments:

Post a Comment

C Programming

What is DBMS in brief?

A Database Management System (DBMS) is a software suite designed to efficiently manage, organize, store, manipulate, and retrieve data. It a...