Computer Science, asked by srishti7696, 1 year ago

Hey guys please answer my questions I will mark it as brainliest
Tomorrow my exam
Please help

Attachments:

Answers

Answered by Anonymous
1
1]
public class sum_product
{
public static void main()
{
int a,b,c,d,e;
a=10;
b=15;
c=20;
d=(a+b+c);
e=(a*b*c);
System.out.println("Sum="+d);
System.out.println(''Product="+e);
}
}


2]
public class Name
{
public static void main()
{
String a="PRIYA"
String b="ARYAN"
String c="AYUSH"
System.out.print(" Word 1 = " + a + " Word 2 = '' + b + " Word 3 = " + c);
}
}


3]
public class TRIANGLE
{
public static void main()
{
int b,h;
double a;
b= 5;
h= 10;
a= (0.5*b*h);
System.out.println("AREA OF THE TRIANGLE = " + a);
}
}


5]
public class NUMBER
{
public static void main()
{
int a,b,c;
a=5;
b=10;
c=15;

if (a < 20 && b<20 && c<20)
System.out.println("The given numbers are less than 20");
else
System.out.println("The numbers are greater than 20");
}
}



⭐️ IF YOU LIKE MY ANSWER, PLEASE MARK ME AS BRAINLIEST MATE...............!!!!!!!!

⭐️ FOLLOW ME FOR MORE SOLUTIONS OF YOUR DOUBTS..........!!!!!!!!

⭐️ BE BRAINLY........!!!!!!!!

srishti7696: hey where is the 6th one
Similar questions