Computer Science, asked by shanayagandhi5, 4 days ago

correct the syntax and rewrite

Attachments:

Answers

Answered by IceIsCold
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