Write any two example JAVA programing
you can also copy from somewhere
Answers
Answered by
1
hey mate ur ans
TO FIND DIAGONAL OF SQUARE
import java.util . * ;
class e
{
public static void main(String args[])
{
Scanner s = new Scanner (System.in );
int a ;
double d;
System.out.println l(" enter side of a square");
a =s.nextInt();
d= Math.sqrt(2)*a;
System.out println("the side of square is"+a);
System.out.println("the diagonal of square=+d);
}
}
TO FIND DIAGONAL OF SQUARE
import java.util . * ;
class e
{
public static void main(String args[])
{
Scanner s = new Scanner (System.in );
int a ;
double d;
System.out.println l(" enter side of a square");
a =s.nextInt();
d= Math.sqrt(2)*a;
System.out println("the side of square is"+a);
System.out.println("the diagonal of square=+d);
}
}
Answered by
2
Heya mate.... Program is about⬇️⬇️⬇️ 1) add any number... 2) how to add two integers... Hope it helps u.... #programminglover @skb
Attachments:
RabbitPanda:
Ty 4 brainlist
Similar questions