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
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
Computer Science,
4 months ago
Math,
4 months ago
Science,
4 months ago
Math,
8 months ago
English,
1 year ago