a. Declare variables x, y and z with ‘int’ data types without initializing them. b. The program should accept inputs for the declared variables as follows: x=0; y=0; and z=0 c. Using the if statement, implement the following constraints: i. Check if the value of variable x and y are equal then increment the value of x by 1. ii. Check if the value of variable x and z are equal then increment the value of x by 1 iii. Check if the value of variable y and z are equal then increment the value of y and z by the value x.
Does anyone know that to do with number III?
Aucun commentaire:
Enregistrer un commentaire