Computer Science, asked by sb93, 1 year ago

Can anyone help me with this java project?

Attachments:

siddhartharao77: Please, ask only 1 question at a time..
sb93: Okay anyhow i learnt & did by myself.

Answers

Answered by harmankaur04
0
class Program
{
public static void main ()
{
System. out. println("Mango");
System. out. printing ("Apple");


this way u will print 5 names and then
}
}


2.class Program
{
public static void main (int a, int b)
{
int s, d;
s=a+b;
d=Math.abs(a-b);
(It's even okay if u don't write this math function)
System.out.println((s*d));
}
}


3.class Program
{
public static void main ( int l, int b)
{
System. out. println("Area=" +(l*b));
System. out. println (" Perimeter=" + (2*(l+b)));
}
}
Similar questions