Ask Question - Get Answer

1 Ans Write a C program for Interest Calculation

Asked by AL MaMun (4 Golds) Friday, 31 Jul 2020, 04:33 PM at (Education Tutorials)

Please log in to answer, like and save
0
Save 0

<<< Previous
Log in to Answer Next >>>

Answer(s):

C program for Interest Calculation :


#include <stdio.h>

int main()

{

    double loan_amount, interest_rate, number_of_years, total_amount,

           monthly_amount;

    printf("Enter the loan amount: ");

    scanf("%lf", &loan_amount);

    printf("Enter the interest rate: ");

    scanf("%lf", &interest_rate);

    printf("Number of years: ");

    scanf("%lf", &number_of_years);

    total_amount = loan_amount + loan_amount * interest_rate / 100.00;

    monthly_amount = total_amount / (number_of_years * 12);

    printf("Total amount: %0.2lf\n", total_amount);

    printf("Monthly amount: %0.2lf\n", monthly_amount);

    return 0;

}


Answered by AL MaMun (4 Golds) Friday, 31 Jul 2020, 04:34 PM

Please log in to Upvote, Downvote and Report
           

Related Q/A:

1 Ans A Quest for Peace in the Middle East: Recent Perspectives - composition

1 Ans Write a C program to print Fibonacci number series

3 Ans BPSC Assistant Programmer Lab Aptitude test Programs and Queries with Proper solution (Taken By BCC)

1 Ans Bank Exam all important Writing Materials

1 Ans The general rules for constructing names for variables (unique identifiers)

1 Ans Write a C Program to check Anagrams of two strings

2 Ans Train Location Message TR Train_Code and Send to 16318 Example: TR 705 Send to 16318

1 Ans Write a C program to find the highest and lowest number in a series

1 Ans Write a C Program to find factorial using recursion

3 Ans Three ways to find Greatest Common Divisor (GCD) and Least Common Multiple (LCM) in a C program