Add two numbers program in Java (with and without user input)

0
SouMitra
Aug 17, 2022 05:52 PM 1 Answers
Member Since Jul 2022
Subscribed Subscribe Not subscribe
Flag(0)
0 Subscribers
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
1
SouMitra
Aug 17, 2022
Flag(1)

public class AddTwoNumbers{
public static void main(String[] args) {
int a = 10;
int b = 20;
System.out.print(a+b);
}

Sign in to Reply
Replying as Submit