Home / Questions / What is the value assigned to the following variables? int X1 = 13/3; int X2 = 13%3;
Explanatory Question

What is the value assigned to the following variables? int X1 = 13/3; int X2 = 13%3;

👁 961 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

 

int X1 = 13/3;
int X2 = 13%3;

  • The value of X1 is 4
  • The value of X2 is 1