Write a program to use all airthmetical operators and increment and decrement operator for any two variables
Anirudh1014:
This is of c++
Answers
Answered by
1
class Java
{
public static void main(String args[])
{
int a=2+3;
int b=5-2;
int c=8*9;
int d=9/3;
a++;
b--;
System.out.println(a+b-c + d);
//note that BODMAS would be applied
}}
{
public static void main(String args[])
{
int a=2+3;
int b=5-2;
int c=8*9;
int d=9/3;
a++;
b--;
System.out.println(a+b-c + d);
//note that BODMAS would be applied
}}
Similar questions