• Register
0 votes


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

Please log in or register to answer this question.

2 Answers

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

Loop Demo:

for (i=0; i < 10; i++) {
  //do something
15 10 7
8,210 points

Related questions

0 votes
1 answer 61 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, 2020 maddi86 5.4k points
0 votes
1 answer 94 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, 2020 maddi86 5.4k points
0 votes
2 answers 21 views
1 vote
1 answer 36 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, 2020 samhaz 5k points
0 votes
1 answer 2 views
Problem: for reasonably sized files, is to read the file as a list of lines so that the count of lines is the length of the list. If the file&rsquo;s path is in a string bound to the thefilepath variable, that&rsquo;s just: count = len(open(thefilepath).readlines ... humongous files, a loop using the xreadlines method always works: count = 0 for line in open(thefilepath).xreadlines( ): count += 1
asked 1 day ago Mashhoodch 6.3k points
0 votes
1 answer 93 views
Problem : The below error occurs quite frequently to me: &ldquo;Subscript indices must either be real positive integers or logical&rdquo; I want to have a general solution for dealing with above problem.
asked Jan 28, 2020 jwilliam 3.9k points
0 votes
2 answers 67 views
Problem : I am currently trying to run my code but found the really annoying problem which I am unable to solve. The function that I am currently working out is as below; function myout = MyCointPairs(MyPriceMat, MySymbols) myout=[]; MyNofStocks = size(MyPriceMat, 2); ... is the price matrix of 60x10, and "MySymbols" is the 10x1 string. One more doubt from my side what are "Subscript indices"?
asked Dec 25, 2019 alecxe 7.5k points
0 votes
1 answer 11 views
Problem Hey, I want to know about a brief of do-while loop. Describe with an example.because i know about for and while loop but don&rsquo;t know about do-while in descriptive way.describe that&rsquo;s gonna be very helpful for me.
asked Nov 22, 2020 chris jordan 2.2k points
0 votes
1 answer 11 views
11 views asked Sep 25, 2020 okeke 360 points