Computer Science, asked by je19900403, 9 months ago

write a program that will have two variable,the first variable is the number one and the second is number two and add them together to display the square root of the answer

Answers

Answered by prashantrohilla32
0

Answer:

import java.util.*;

public class Main

{

public static void main(String[] args) {

    Scanner sc=new Scanner(System.in);

    int a=sc.nextInt();

    int b=sc.nextInt();

    int c=(int)Math.sqrt(a+b);

 System.out.println("Square root of "+a+" + "+b+" = "+(a+b)+" = "+c);

}

}

Explanation:

it is a java program

Attachments:
Similar questions