Q:

Write a program to calculate simple interest

0

Write a program to calculate simple interest

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Program:

#include<stdio.h>
#include<conio.h>
void main()	
{
float amt,rate,time,si;
printf("Enter the amount:");
scanf("%f",&amt);
printf("Enter the rate:");
scanf("%f",&rate);
printf("Enter the time:");
scanf("%f",&time);
si=(amt*rate*time/100);
printf("\nSimple interest= %f",si);
getch();
}

Output:

Enter the amount: 1o 0
Enter the rate: 4
Enter the time: 7

Simple interest= 2.800000

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C Programming Exercises With Solutions

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Write a program in which you declare variable of a... >>
<< Write a program to print student marksheet...