Kadai1.java



public class Kadai1 {

    public static void main( String[] argv ) {

        for( int i=1; i<10; i++ ) {
            int d = i % 3;
            System.out.println( i + " % 3 = " + d );
        }
    }
}