by Dinesh Thakur

 

class NumberExcept
{
            public static void main(String args[] )
            {
                        int i;
                        for(i=1;i<=10;i++)
                        {
                                    if(i==5) continue;
                                    System.out.print(i +" ");
                        }
            }
}

Print Number from 1 to 10 Except 5