int p = 200; int q = 100; if(p%2==0){ q = q/50; } else{ q = q/100; } q = ? What will be the final value of q . In C++

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter7: Using Methods
Section: Chapter Questions
Problem 3RQ
icon
Related questions
Question
100%

int p = 200;
int q = 100;

if(p%2==0){
q = q/50;
}
else{
q = q/100;
}

q = ?

What will be the final value of q .

In C++

Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,