• Register
0 votes
363 views

Problem:

A ________ value in a loop can be either a positive or a negative number. Is this true of False? I am bit confused can anyone suggest?


edited by

2 Answers

0 votes
The answer is a step value
0 votes

Loop Demo:

Syntax:
for (i=0; i < 10; i++) {
  //do something
}
8.1k points

Related questions

0 votes
1 answer 26 views
26 views
Problem: I am new, I need help, can anyone help? Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4? a. 1-4 c. [1234] b. [1-4] d. [1,2,3,4]
asked Feb 21 maddi86 5.4k points
0 votes
1 answer 39 views
39 views
Problem: I am new and learning, I need help, can anyone help by filling in the blanks? A(n) ________ search uses a loop to sequentially step through an array? A) binary B) unary C) linear D) relative E) None of these
asked Feb 21 maddi86 5.4k points
0 votes
2 answers 11 views
1 vote
1 answer 14 views
14 views
Problem: I wrote a program in python to check if a given number is sparse or not. So I wrote this code: def IsSparse(n): if ((n<<1) & (n>>1)): return 0 return 1 print(IsSparse(35)) print(IsSparse(16)) print(IsSparse(12)) print(IsSparse(72)) And when I run this or ... . The output is: 1 1 1 1 But the actual output should be: 0 1 0 1 What should I do to get the actual result? Thanks in advance.
asked Apr 22 samhaz 5k points
1 vote
1 answer 30 views
30 views
Problem: Can anyone provide me an expression that executes the loop body as long as the user enters a non-negative number. Thanks in advance.
asked Apr 9 LizzyM 6.1k points