var a = 1, b = 2, C = 3; for (var a = 0; a < b; a++) { c += a; }

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter8: Network Models
Section8.5: Minimum-cost Network Flow Problems
Problem 8P
icon
Related questions
Question

After the code is executed, what is the value of variable “a”?

 

var a %3D 1, b %3D 2, с %3D 3;
2 for (varа %3D 0%; а < b; а++) {
3\
с +3 а;
4 }
Transcribed Image Text:var a %3D 1, b %3D 2, с %3D 3; 2 for (varа %3D 0%; а < b; а++) { 3\ с +3 а; 4 }
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole