@@ -0,0 +1,277 @@
+import java.util.*;%0Apublic class Expt1 %7B%0A%09public static void main(String args%5B%5D)%7B%0A%09%09%0A%09%09Scanner src=new Scanner(System.in);%0A%09%09%0A%09%09float x=src.nextFloat();%0A%09%09float y=src.nextFloat();%0A%09%09%0A%09%09if(x%255!=0 %7C (x+0.5)%3Ey)%0A%09%09%09System.out.println(y);%0A%09%09else System.out.println(y-(x+0.5));%0A%09%7D%0A%7D%0A

Create Expt1.java