Computer Science, asked by Anirudh1014, 1 year ago

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 aakarsh09
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
}}

Anirudh1014: Thanks a lot dude
aakarsh09: follow me if you want more answers
Similar questions