Computer Science, asked by SwastikaSarkar, 9 months ago

The question is Write a program to accept any two numbers and find the sums of their square values.

its from JAVA plz do it
NO SPAM!​

Answers

Answered by IamGenesis
1

Answer:

import java.util.Scanner;

public class SumOfSquares{

public static void main (String[] args){

Scanner sc= new Scanner (System.in);

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

int n1 = sc.nextInt();

int n2 = sc.nextInt();

int sum = n1*n1 + n2*n2;

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

}

}

Similar questions