Computer Science, asked by TheKnowledge, 1 year ago

Write any two example JAVA programing

you can also copy from somewhere



Answers

Answered by ryan567
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);
}
}
Answered by RabbitPanda
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