Can anyone help me with this java project?
Attachments:
siddhartharao77:
Please, ask only 1 question at a time..
Answers
Answered by
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)));
}
}
{
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