Computer Science, asked by Shiksha2060, 1 year ago

Java code to print sum of two numbers

Answers

Answered by Anonymous
6

Answer:

Java program to add two numbers

import java.util.Scanner;

class AddNumbers.

{

public static void main(String args[])

{

int x, y, z;

System. out. println("Enter two integers to calculate their sum");

Scanner in = new Scanner(System. in);

Similar questions