Correct the errors in the given program :
Class public
{ public static void main(String args{})
{ int a=45,b=70,c=65.45;
sum=a+b;
diff=c-b;
System.out.println(sum,diff);
}
}
Answers
Answered by
4
The correct answer
Class public
{
public static void main(String args{})
{
int a=45,b=70;
double c=65.45;
sum=a+b;
diff=c-b;
System.out.println(sum,diff);
}
}
Hope it helps
Answered by
1
Answer:
Class public
{
public static void main(String args{})
{
int a=45,b=70;
double c=65.45;
sum=a+b;
diff=c-b;
System.out.println(sum,diff);
}
}
Explanation:
Yay, do this to get full on full for this question
Similar questions
Math,
3 hours ago
Math,
3 hours ago
Computer Science,
5 hours ago
English,
5 hours ago
English,
7 months ago
Social Sciences,
7 months ago