Program to find the Depreciation of Value | Java program to find depreciation of the value initial value , rate and time are given ; Function to return the depreciation of value ; Driver code
import java . io . * ; class GFG { static float Depreciation ( float v , float r , float t ) { float D = ( float ) ( v * Math . pow ( ( 1 - r / 100 ) , t ) ) ; return D ; } public static void main ( String [ ] args ) { float V1 = 200 , R = 10 , T = 2 ; System . out . print ( Depreciation ( V1 , R , T ) ) ; } }