but the same program gives other output if i use other values other then 0.7