Computer Science, asked by amanpreet171717, 10 months ago

correct the error in the given program:
class simplify
public static void main(String args (1)
int a,b,c,d;
a=10, b=5,c=1,d=2;
c= a 2+b2;
d=(a+b)2;
t= c/d;
System.out.printin(c+""+""+d+""+p);​

Answers

Answered by a321038
10

Explanation:

class simplify

{

public static void main(String args[])

{

int a=10,b=5,c=1,d=2,t;

c=a^2+b^2;

d=(a+b)^2;

t=c/d;

System.out.println(c+" "+d+ " " +p);

}

}

PLEASE MARK AS BRAINLIEST

Answered by vk6859402
1

Answer:

hope this answer is helpful to you

Attachments:
Similar questions