Wednesday 18 April 2012

C Program To Calculate Simple Interest




 Type as given in figure.

Save, compile and Run.

The answer should be 255.000000

Change the values of p, n and r

%f is the Format Specifier for Float. Check that here: Format Specifiers

Now, some work for you. make a program which asks the user to input the data and then it should calculate the simple interest.

Make program as follows:


Enter the Principal:
Enter the Rate:
Enter the Time:
The Simple Interest is:

0 comments: