#include <stdio.h>
#include <conio.h>
void main()
{
float p, r, si;
int t;
clrscr();
printf("Enter the values of p,r and t\n");
scanf ("%f %f %d", &p, &r, &t);
si = (p * r * t)/ 100.0;
printf ("Amount = Rs. %5.2f\n", p);
printf ("Rate = Rs. %5.2f%\n", r);
printf ("Time = %d years\n", t);
printf ("Simple interest = %5.2f\n", si);
}
Using parameters argc and argv, and library functions fopen, fprintf, fclose
yes
Here is an example program: class obj{ public: float p,n,r,si; friend void calc( obj temp); }; void calc( obj temp){ si = (p*n*r)/100; } The initialization and function calling is essential.
i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?
In the Options menu the Arguments command.
Not used
Using simple interest is easier for people to understand. Customers will be able to manage their payments if a business uses simple interest.
You earn more money using compound interest than simple interest because compound interest calculates interest on both the initial amount and the accumulated interest, leading to faster growth of your money over time.
Using parameters argc and argv, and library functions fopen, fprintf, fclose
yes
Simple Interest
Alright, listen up, honey. To solve simple investment problems using simple interest, you just need to multiply the principal amount by the interest rate and the time period. Add the interest to the principal, and voila, you've got your total amount. It's basic math, darling, nothing to lose sleep over.
That would also depend on the interest rate, and whether you are using simple or compound interest.
time= interest/principal x rate likee yeahh thats it
Here is an example program: class obj{ public: float p,n,r,si; friend void calc( obj temp); }; void calc( obj temp){ si = (p*n*r)/100; } The initialization and function calling is essential.
Simple interest is computed on the principal amount, which is the initial sum of money borrowed or invested. It is calculated using the formula: Interest = Principal × Rate × Time, where the rate is the annual interest rate and time is the duration in years. Unlike compound interest, simple interest does not take into account any interest that accumulates on previously earned interest. Thus, it remains constant throughout the investment or loan period.
Arguments using numbers to prove their point.