Question: //Comparing variables of inappropriate data types. char a = 65, b = 66, c = 67; int c, cc=60; float e, dd=55; c= a+cc; system.out.println(c);
//Comparing variables of inappropriate data types.
char a = 65, b = 66, c = 67; int c, cc=60; float e, dd=55;
c= a+cc;
system.out.println(c);
// whats error here, correct it yourself via correct data type, make a Java program
e=dd*a;
system.out.println(x + y);
// whats error here, correct it yourself via correct data type, make a Java Program
//even this code work, this code have a wrong data type, inaccuracy issue? Fix it
if(a>c)
system.out.println(x + y);
if(cc>dd)
system.out.println(x + y);
// whats error here, correct it yourself via correct data type in your java program
What are the errors in this code?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
