বুধবার, ১৫ এপ্রিল, ২০১৫

How to solve the desire loan in C reprogramming ..




#include<stdio.h>

int main(){
    float bank_loan,interest_amount,interest,total_paid;

    printf("\n      Enter the Loan amount : ");
    scanf("%f",&bank_loan);
  
     printf("\n      Enter the Interest amount : ");
    scanf("%f",&interest_amount);
  
    interest=bank_loan*interest_amount/100;

    total_paid=bank_loan+interest;

    printf("\n      Total interest for bank Loan %f\n",interest);
    printf("\n      Total Paid to bank with interest %f\n\n",total_paid);

    printf("..............................................\n\n\n");

    return 0;
    }

Out put ...............



কোন মন্তব্য নেই:

একটি মন্তব্য পোস্ট করুন