You are missing semicolon after initialization statements. Put ; ex: int i =2 ; But you have learn more , first write code for taking inputs.. you are not declared x,y and not have inputs into x,y. First write code for first constraint of problem. Then go for next... Hope it helps.. edit: You can reply after the try...
dharmik patel You are not declared x,y yet. Declare those and take input into those..