TCS NQT Previous Year Solve | Slot 1 (III) | Codewindow.in

Programming Logic

public class main {
{
int $ = 5;
}
} 
class main
{
    public static void main(string args[])
    {
        int i,j,x=0;
        for(i=0;i<5;i++)
            for(j=0;j<5;j++)
            {
                x=(i+j-1);
                System.out.print(x);
                break;
            }
    }
    System.out.print(x);
} 

Also Checkout

Recent Posts

Leave a Comment

Your email address will not be published. Required fields are marked *