import java.lang.*;

class Inc_dec_operators
{
public static void main(String args[])
{
int a=10;
System.out.println(“\nIncrement Operators:\n”);
System.out.println(“\nPre Increment Operator:\n”);
System.out.println(“a : “+a);
System.out.println(“++a : “+(++a));
System.out.println(“a : “+a);

System.out.println(“\nPost Increment Operator:\n”);
System.out.println(“a : “+a);
System.out.println(“a++ : “+(a++));
System.out.println(“a : “+a);

System.out.println(“\nDecrement Operators:\n”);
System.out.println(“\nPre Decrement Operator:\n”);
System.out.println(“a : “+a);
System.out.println(“–a : “+(–a));
System.out.println(“a : “+a);

System.out.println(“\nPost Decrement Operator:\n”);
System.out.println(“a : “+a);
System.out.println(“a– : “+(a–));
System.out.println(“a : “+a);
}
}

41,314 total views, 352 views today

Get Free Email Updates..!
Join us for FREE to get instant email updates..! GobsInfo- Everything Unlimited
We hate spam. Your email address will not be sold or shared with anyone else.

2,613 Thoughts to “Java Program To Demonstrate Increment And Decrement Operators”

  1. Hello, I check your new stuff on a regular basis. Your humoristic style is witty, keep up the good work!

  2. Have a great day!. Could you tell me the name of this design, or is it a special theme one? The reason I ask is that When I look at your RSS feed it seems to be just a lot of messed up text. Is the problem with your site, or mine? Could it be browser related? Anyone else having this same problem? Hair Loss Treatment
    cheap true religion http://www.cheaptruereligion.online

  3. I have read a few good stuff hereDefinitely price bookmarking for revisitingI wonder how much attempt you set to create this kind of great informative website.
    Millet jackets store http://www.milletoutletstore.cc

Leave a Comment