Computer Science, asked by brainy1358, 8 months ago

programming language java
programs



2.7 Consider any two integers. Write a program to print sum of
their squares


2.8 write a program to print a roll no. Avagrage of two student​

Answers

Answered by ayasmitamanna146
2

Explanation:

27.

import java.util.scanner

public class integer

{

public static void main(String[]args

{

Scanner sc=new Scanner(System.in);

double x,y,a,b;

{

System.out.println("Enter the sides:);

x=in.nextInt();

y=in.nextInt();

a=Math.sqrt(x);

b=Math.sqrt(y);

System.out.println("the sum of square is"+(a+b));

}

}

}

Similar questions