correct the syntax and rewrite
Attachments:
Answers
Answered by
1
Answer:
System.out.print ("Sum of x and y is" + sum);
Or
System.out.println ("Sum of x and y is" + sum);
you can write both!!!
Explanation:
public class Calculator
{
public static void main (String args [ ] )
{
float x = 10.5;
float y = 20.15;
float sum = x+y;
System. out. print ("Sum of x and y is" + sum);
}
}
I hope this helps you,if you like mark this as brainlist..❣️
Similar questions
Chemistry,
2 days ago
Geography,
2 days ago
Social Sciences,
2 days ago
English,
4 days ago
Math,
8 months ago