Questions tagged as 'for'

2
answers

PHP logic: how to construct this looping (for, while, foreach)?

Good evening. I'm in the following situation: I'm reading an XLS and playing in a table. This XLS has 52 rows and 6 columns. What I'm getting caught up to do is: $result[linha 1][coluna A] $result[linha 1][coluna B] $result[linha 1][colu...
asked by 03.01.2016 / 04:27
2
answers

loop step size for MATLAB

I have the following loop in MATLAB, I would like to know how to make my variable k be incremented from 0.15 by 0.15 until it reaches 10. for k=1:1:10 %... end     
asked by 01.11.2018 / 22:15
1
answer

___ ___ Do erkimt the cumulative value in the loop ______ qstntxt ___
%pre%

I need to get the next value adding the former to have a build-up.

    
______ ___ azszpr325514
%pre%

To add integers use the parseInt function. Full Example:

%pre%     
___

var previsto = []; for(var i = 0; i < $(".previsto").length ; i++) { previsto[i] = $(".previsto").eq(i).text(); } I need to get the next value adding the former to have a build-up.     
asked by 28.08.2018 / 16:02
2
answers

How to display and hide Toogle within ngfor correctly?

listNotas() { this.service.getList(this.idAluno).subscribe( data => { this.error = data.error; this.list = data.message; console.log(this.list); }, err => consol...
asked by 19.07.2018 / 00:49
2
answers

No syntax error?

Error: (only assignment call increment decrement and new object expressions can be used as a statement) I do not understand why you are giving this error, since the variable is of type int ... int deQuantidade = 0, ateQuantidade = 0; string...
asked by 26.01.2018 / 02:34
1
answer

How to retrieve PHP array for comparison in javascript?

I have a code in javascript that sends some elements of the page to another in PHP via ajax and there are some comparisons. Then it returns this array with the print_r () function: However, I'd like to use return for a second javascri...
asked by 14.09.2017 / 04:07
2
answers

Tie "for" inside another "for" (nested repetition)

I would like to save these 9 lines repeated in my code: for (int n1 = 1, n2 = 1; n2 < 11;){ Console.Write(n1 + "x" + n2 + "=" + (n1 * n2) + "\t"); n1++;//1 Console.Write(n1 + "x" + n2 + "=" + (n1 * n2) + "\t"); n1++;//2 Console....
asked by 27.09.2017 / 03:39
1
answer

Can anyone explain to me what is a generic loop in Lua?

I already know the while , repeat and for ties, but when I was looking at the types of loops, in the section I found the "Loop for generic" section. The text was in English.     
asked by 19.04.2017 / 18:57
1
answer

Recreate HTML elements from one Div to another Div by ClassName

Well, some will suggest me to use cloneNode(true) of Javascript to make a appendChild(var) in the DOM . But for this case, I already used this native feature, but it did not meet my need. Why, when I make a faithful clone of yo...
asked by 08.04.2017 / 16:57
1
answer

For nested in parallel

I am trying to rotate two% nested%. The second would like it to be parallel. Follow my code. for (int i = 0; i < original.Width; i++) { Parallel.For(0, original.Height, j => { Color originalColor = origina...
asked by 02.12.2016 / 13:26