Program to find the Depreciation of Value | CPP program to find depreciation of the value initial value , rate and time are given ; Function to return the depreciation of value ; Driver Code
#include <bits/stdc++.h> NEW_LINE using namespace std ; float Depreciation ( float v , float r , float t ) { float D = v * pow ( ( 1 - r / 100 ) , t ) ; return D ; } int main ( ) { float V1 = 200 , R = 10 , T = 2 ; cout << Depreciation ( V1 , R , T ) ; return 0 ; }