@tanvir,
you are right, you have some problems with the input and output
thats why u will get presentation error
but u have some problems with your logic too
for example, look at the following code segment: