Computer Science, asked by jkjetendra, 8 months ago

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 g02shrijal
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