Lab Assignment 4 • Using shortcut operators in java Below 4 data values are given to you. Write a program to add/subtrac
Posted: Fri Jul 01, 2022 5:43 am
Lab Assignment 4 • Using shortcut operators in java Below 4 data values are given to you. Write a program to add/subtract from the numbers as noted in the comment and display the values to the console. int a = 10; // add 1 to 'a' using shortcut operator and display (print to console) int b = 5; // subtract 1 from 'b' using shortcut operator and display int c = 15; //add 5 to 'c' using shortcut operator and display int d = 20; //subtract 5 from 'd' using shortcut operator and display