CALCULATE SIMPLE INTEREST

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
 float s,p,n,r;
 clrscr();
 printf("\n\tEnter Principle : ");
 scanf("%f",&p); //input
 printf("\n\tEnter Number : ");
 scanf("%f",&n); //input
 printf("\n\tEnter Rate : ");
 scanf("%f",&r); //input
 printf("\n\t--------------------");
 s=p+n+r/100;
 printf("\n\tSimple Interest = %d",s);
 printf("\n\t--------------------");
 getch();

}
Output

No comments:

Post a Comment

Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II

Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II :   1) Which of the following is the extension of Not...