Please explain what kind of syntax errors or problems the following statements might have. 1 = x; __________________ int X = 3.0.; __________________ char ch = "a"; __________________ int a==l; __________________ int if=3; __________________ What is the value of each output statement? Please write your answers on the· provided line. public class Evaluation { public static void main(String arg[]) { int X=l0 , i; for (i=0; i<3; i++) X=X-2; System.out.println(i); System.out.println(x); int h=0; do { h= h+3; } while (h<2'); System.out.println(h); int k=2; while (k <2 ) { k= k+3; } System.out.p~ihtln (k);
Please explain what kind of syntax errors or problems the following statements might have. 1 = x; __________________ int X = 3.0.; __________________ char ch = "a"; __________________ int a==l; __________________ int if=3; __________________ What is the value of each output statement? Please write your answers on the· provided line. public class Evaluation { public static void main(String arg[]) { int X=l0 , i; for (i=0; i<3; i++) X=X-2; System.out.println(i); System.out.println(x); int h=0; do { h= h+3; } while (h<2'); System.out.println(h); int k=2; while (k <2 ) { k= k+3; } System.out.p~ihtln (k);
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter7: User-defined Simple Data Types, Namespaces, And The String Type
Section: Chapter Questions
Problem 1TF
Related questions
Question
Please explain what kind of syntax errors or problems the following statements might have.
1 = x; __________________
int X = 3.0.; __________________
char ch = "a"; __________________
int a==l; __________________
int if=3; __________________
What is the value of each output statement? Please write your answers on the· provided line.
public class Evaluation {
public static void main(String arg[]) {
int X=l0 , i;
for (i=0; i<3; i++)
X=X-2;
System.out.println(i);
System.out.println(x);
int h=0;
do {
h= h+3;
} while (h<2');
System.out.println(h);
int k=2;
while (k <2 ) {
k= k+3;
}
System.out.p~ihtln (k);
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr