Computer Science, asked by sandeeparora232425, 4 months ago

o I w p n p t e o r full of this​

Answers

Answered by shivam993116
0

Answer:

#include <stdio.h> int main() { float principle, rate, sinterest; int time; printf("Enter Principle Amount, Rate %% per Annum and Time\n"); scanf ("%f %f %d", &principle, &rate, &time); sinterest = (principle * rate * time)/ 100.0; printf ("Principle Amount = %5.2f\n", principle); printf ("Rate %% per Annum = %5.2f%\n", rate); printf ("Time = %d years\n", time); printf ("Simple Interest = %5.2f\n", sinterest); }

Explanation:

This program will calculate the value of the SI where the principal, rate and the time is given by the user. So first of all, you have to include the stdio header file using the "include" preceding # which tells that the header file needs to be

process before compilation, hence named preprocessor directive. There is also another header file conio.h, which deals with console input/output and this library is used here for getch() function.

I hope it helps you

Similar questions