Increment Operators

Learn increment operators in java

public class Demo {
public static void main(String args[]){

int html = 5;
int css = 10;
int java = 10;
int cal = 1;

html += 5;
css += 10;
java *= 5;
++cal;

System.out.println(html + “\n” + css + “\n” + java);
System.out.println(cal);

}
}

 

 

Share

Leave a Reply

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

Time limit is exhausted. Please reload CAPTCHA.