Thats because the character when converted into ASCII and multiplied will be numbers not as per expectation and so its giving unexpected output.