India Languages, asked by bajwa8202, 11 months ago

Write e a program for pre and post decrement operator

Answers

Answered by bunny152407
2

Answer:

post increment:-

class PostIncrement

{

 public static void main(String args[])

{

   int num1 = 1;

   int num2 = 1;

   num1++;

   num2++;

   System.out.println("num1 = " + num1);

   System.out.println("num2 = " + num2);

 }

}

Similar questions