What is the value of variable z when the following program segment - ProProfs Discuss
Advertisement

What is the value of variable z when the following program segment ends; int z; for(z=0; z<50; z++) { }?

Asked by Andreeahrab, Last updated: Apr 08, 2024

+ Answer
Request
Question menu
Vote up Vote down

2 Answers

M. Klose

M. Klose

M. Klose
M. Klose, Content Writer, Oakland

Answered Jan 04, 2019

In certain equations, the student may know to plug in the amounts for the variables. Variables are the letters which stand for a certain number. Each different variable stands for a different variable. Sometimes, in equations there are ways to find out the variable amount by moving parts of the equation to the other side of the equal side or combining like terms.

There may also be times when problems explain what the variable may or may not be equivalent to based upon sentences given to the student. In most cases, the problem should be solved by finding the amount for the variable, but sometimes the answer may not be in the form of a number. In this case the variable z stands for 50.

upvote downvote
Reply 

andreeahrab

andreeahrab

andreeahrab
Andreeahrab

Answered Sep 28, 2018

50
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.