write a program in java to enter 2 numbers and display the result with proper message
Answers
Answered by
2
public class Number
{
public static void main(int a, int b)
{
int c;
c=a+b:
System.out.println("Sum is " + c);
}
}
here since u haven't told what had to be the numbers therefore I have calculated sum as a sample
so perform your actions accordingly
Hope it helps you out
Hope it helps you out mark as BRAINLIEST
Hope it helps you out mark as BRAINLIEST @phenom
Similar questions
Math,
4 months ago
Math,
4 months ago
Math,
4 months ago
Business Studies,
9 months ago
Math,
1 year ago
Math,
1 year ago
Computer Science,
1 year ago