Basic Unary Operator Example-1 || Miscellaneous Operator || Java


In this we are going to see a basic program of basic unary operator example-1 in Java Programming Language.



public class Test {

    public static void main(String[] args) {
        int num = 25;
        num--;
        System.out.println(num);

        num++;
        System.out.println(num);
    }
}

// Coded by Saahil


#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post