subject

2. what is the effectof the following code fragment?
int num1 = 2;
int num2;
cin> > num2;
if(num2%num1 == 0)
cout< < "first option"< else
cout< < "second option"< a. assigns the character'%' to the variable num2 if num1 is 0, and displays firstoption
b. displays first option if num1 and num2 are equal to 0, andsecond option otherwise
c. displays first option if an even number is enteres as input, andsecond option if an odd number is entered as input
d. displays first option if num1 and num2 are equal and secondoption otherwise

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 25.06.2019 00:00
When pasting an existing chart into a word document, you can choose to using the paste options button. a. paste the chart as a picture b. embed the chart c. add the chart while keeping the destination formatting intact d. insert the chart while keeping the source formatting intact
Answers: 1
question
Computers and Technology, 25.06.2019 04:00
What was the name of the first computer (machine) language?
Answers: 2
question
Computers and Technology, 25.06.2019 08:10
Why should the technician watch for signs of contamination in the oil when recovering refrigerant from a system
Answers: 3
question
Computers and Technology, 25.06.2019 11:30
How do you put a picture with your question? i need to put a picture with my question
Answers: 1
You know the right answer?
2. what is the effectof the following code fragment?
int num1 = 2;
int num2;
ci...
Questions
question
Mathematics, 16.10.2021 22:20
question
Mathematics, 16.10.2021 22:20
question
Mathematics, 16.10.2021 22:20
question
Mathematics, 16.10.2021 22:20
Questions on the website: 13722363