• Register
0 votes
469 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?

0 points

2 Answers

0 votes
The answer is a step value
0 points
0 votes

Loop Demo:

Syntax:
for (i=0; i < 10; i++) {
  //do something
}
15 10 6
8,170 points

Related questions

0 votes
1 answer 46 views
46 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 56 views
56 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 17 views
1 vote
1 answer 21 views
21 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