Computer Science, asked by ArchishaSahu, 4 months ago

write a java program to accept two no. and print them on separate lines​

Answers

Answered by alamzaid388
1

Answer:

import java.util.Scanner;

public class Main {

public static void main(String[] args)

{

Scanner input = new Scanner (System.in);

System.out.print("Input the first number: ");

int num1 = input.nextInt();

System.out.print("Input the second number: ");

int num2 = input.nextInt();

int sum = num1 + num2;

System.out.println();

System.out.println("Sum: "+sum);

}

}

Explanation:

bro plz mark me brainliest I am doing too much hardwork for you all students

Answered by sajidmirza90
3

at last } ..

Reffer to the attachment ..

hope it helps you..

Attachments:
Similar questions