import java.util.Scanner; /* for getting scanner */
public class HackDefence{
public static void main(String[]args){
Scanner Dipankar = new Scanner(System.in);
int x=5;
System.out.println(++x); /* here after incrementing,result is stored in x */
System.out.println(x++); /*here after storing, increment is done */
System.out.println(x);
}
}
OUTPUT:
No comments:
Post a Comment