C.
Write statements in Java for the following:
i. Declare a variable a and b of integer type.
ii. Declare an integer variable x and initialize it with 73.
iii. Assign the sum of the variable m and n into the variable q.
iv. Check whether the value in variable a is greater than or equal to the value in variable b
V. Divide x with y and store the remainder in z.
Answer as directed.
Answers
Answered by
13
Answer:
i. int a;
int b;
ii. int x = 73;
iii. q = m + n;
iv. if(a>b)
System.out.print("greater");
else if (a==b)
System.out. print("equal");
v. z = x%y;
Explanation:
Similar questions
Math,
4 months ago
Computer Science,
4 months ago
Math,
4 months ago
History,
8 months ago
English,
8 months ago
Business Studies,
1 year ago
Physics,
1 year ago
CBSE BOARD XII,
1 year ago