Computer Science, asked by gandibunny, 7 hours ago

write a Java program to accept any two int values and an arithmetic operator and display the required output​

Answers

Answered by ajb7899
2

import java.util.*;

public class program

{

void main()

{

Scanner sc = new Scanner(System.in);

System.out.println("Enter the numbers");

int a = sc.nextInt();

int b = sc.nextInt();

int c = a +b ;

System.out println("Result is "+c);

}

)

If it helps give 5 stars marking it as the brainliest

Similar questions