Page 1 of 1

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
by answerhappygod
Lab Assignment 4 Using Shortcut Operators In Java Below 4 Data Values Are Given To You Write A Program To Add Subtrac 1
Lab Assignment 4 Using Shortcut Operators In Java Below 4 Data Values Are Given To You Write A Program To Add Subtrac 1 (19.1 KiB) Viewed 41 times
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