Get Email Subscription

Enter your email address:

Delivered by FeedBurner

Wednesday, March 10, 2010

Calculation of depreciation by using WDV method

Enter cost, rate of depreciation and number of years. Display depreciation for each year by WDV method.


#include<stdio.h>
#include<conio.h>
void main( )
{
float cost, rate, year, dep, cnt;
clrscr( );
printf("Enter Cost, Dep.Rate, Years");
scanf("%f %f %f", &cost, &rate, &year);
for (cnt=1; cnt < = year; cnt++)
{
dep = cost*rate/100;
cost = cost - dep;
printf("\n Year %f, Depreciation %.2f\n", cnt, dep);
}
getch( );
}

Related Posts by Categories



0 comments:

About This Blog

Lorem Ipsum

  © Blogger templates Newspaper III by Ourblogtemplates.com 2008

Back to TOP