Getting error in o/p

Pls check my code…its not displaying the correct output…