1. Trace through the following loop.

    int n = 1796;
    int count = 0;
    while (n > 0)
    {
       int digit = n % 10;
       if (digit == 6 || digit == 7)
       {
          count++;
       }
       n = n / 10;
    }
    System.out.println(count);
    
    n count digit Output