Questions tagged as 'for'

1
answer

Toogle Select Function

I have the following scenario: I have a list of addresses that comes dynamically from the database, according to what is registered by the user. I need to enable only one address, so when one button is activated all other ones are disabled...
asked by 31.10.2018 / 08:27
1
answer

Loop Doubt (For) with information coming from the database

What about personal blz? I'm having a big problem running my code. I have a web application made in laravel, which is running local. In this application I need to generate a report that is being done using DOMPDF. The report is incomple...
asked by 29.08.2018 / 16:06
2
answers

Repeat loop is in C

I have to do the following exercise: Read 3 integer values and sort them in ascending order. At the end, show the values in ascending order, a blank line and then the values in the sequence as read. The part of sorting the numbers I got....
asked by 12.04.2016 / 07:48
4
answers

Progressive count using for [closed]

If I do this for: for (var i = 0; i < 9; i++) { document.write(i); } The result will be: 123456789 How do I do it instead of being like this: 123456789, does it create a count with a numeral only? Type a progressive count.     
asked by 26.06.2017 / 21:28
2
answers

How to make loops in R

I'm working with weather data and need to do a boundary analysis for each element of my database. I need to do loops because my database is too big, but I do not know where to start. A part of my file is this: dia hora data tem_1min...
asked by 24.09.2018 / 01:37
1
answer

Array loop problem - JavaScript [duplicate]

When I try to loop, I do not even want to get into the for, I already checked and the array with the object is not empty, but it does not execute the loop ... Any ideas? var caminho = []; $.get("http://localhost/crocs/arquivo.json", functio...
asked by 11.10.2018 / 22:32
1
answer

"String index out of range: 5"

The error mentioned in the question in my program in java is occurring. The program is a bar code reader. The user informs the code digits (with the exception of the last one). The sum of the numbers q is in the odd position, and the odd numb...
asked by 31.08.2017 / 19:10
1
answer

How to sum values coming from a for?

So, I need to solve a little problem in my code (I'm very newb), I'm just programming because I need this for my TCC, I do not know much about python but I'm trying to turn around. In line 126 it has that formula del_Frs_uth .... and it...
asked by 05.05.2018 / 22:58
1
answer

How to increment and decrement using FOR?

I'm not able to increment the variable with each click on a button . Example: Button and Paragraph , each time you click the button , increase the Paragraph , for example, from 0 to 1, and each click will increment one. functio...
asked by 23.08.2017 / 22:26
1
answer

REPEAT NUMBERS 4 IN 4 TIMES IN PHP

Hello, sorry for ignorance is that I am now entering the back end and need a 'for' that repeats the same number of 4 in 4, every one repetition it increments, gets one more BY: YOU MUST PRINT THIS: 111222333444555666777 ... Here is th...
asked by 07.11.2018 / 03:11