11945 - Financial Management
Solution Description : Ad hoc problem Here critical part is print ',' Input 12 value as double and sum 12 values. set avg = sum / 12.0 if(avg>999.00) then print (long) (avg/1000.0) and ',' and fmod(avg,1000.0) //here fmod() use for modules for floating point value. else print avg |
||||||||||