Computer Science, asked by AMANSIDDIQUI7469, 11 months ago

How can I add 54321+4321+321+21+1 in java?

Answers

Answered by omkate
0

Answer: Create a variable

ADD THEM

CODE-

Int I = 54321+4321+321+21+1;

Answered by sayantannandi123
0

Answer:

It's very very easy

I am doing the program the program for you

just copy this code and you will get your result correct.

hope you will like this!!

class add {

public static void main (String args [ ] )

{

int a = 54321;

int b = 4321;

int c = 321;

int d = 21;

int e = 1;

int s = a+b+c+d+e;

System.outprintln("Sum of the numbers is "+s);

}

}

Similar questions