Questions tagged as 'loops'

1
answer

Repeat a loop

I need to repeat an action 9999999999999999 times in PHP. I made a for loop: for($i = 0; $i < 9999999999999999; $i++) But it gives me an error and it does not execute the loop. How can I solve it?     
asked by 15.08.2017 / 18:35
1
answer

doubt recursion

I have a sample code of a printing procedure recursively in reverse order of the contents of a list that I do not understand. This is the code: My doubt: I imagined the operation of this, I thought it would be like this: start the execution o...
asked by 25.07.2017 / 19:33
1
answer

problems dynamic name event click inside a For not working jquery

Greetings when assigning a dynamic name does not assign the action html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximu...
asked by 19.10.2017 / 17:59
1
answer

Count letters in a string in R with while ()

good afternoon. I'm trying to do a while loop, for a letter count. The objective is to obtain the count of the first 20 letters of a DNA sequence. The Script that I have is: sec <- "ACGTGCATGACGTAGCTATGCAGTCATACACGTGCATGACGTAGCTATGCAG...
asked by 14.11.2016 / 19:12
7
answers

Differences between x ++ and ++ x

In the code I see many times x++ in loops, but sometimes I find ++x . Is there any difference between these two expressions?     
asked by 03.12.2015 / 18:04
0
answers

How do I assign values from one arrangement to another?

I want to make a function that gives me back a specific position of an array of a smaller length with respect to another one in VBA - Excel, all my values are multiples of 28 and I had this idea in mind: Public Function arreglo_corto(rango As...
asked by 17.02.2018 / 00:21
1
answer

How to make a random button that a number is 'a prize' and another 'an earthquake' without both values ever matching

Hi, I'm good at this, I do not fall into how to make a button of a prize, another a disaster (earthquake), and it would be from 1 to 5 randomly, it is for a game, both can not be repeated, Let randomly the two buttons never give the same value....
asked by 21.01.2018 / 19:10
0
answers

How to remove two last elements of an array in this example

I am new to js and I am quite busy, I have attached two js sets since I do not know how to do it separately. I have a js that is a raffle, it is a window open from the general panel with open () there, randomly, there are two buttons, one that g...
asked by 24.01.2018 / 13:32
1
answer

Face with movement by console in C #

I have a problem executing a function in console, I want to make a face move from right to left but the movement does not run when I add the function of the eyes, it was my logic to put two functions apart and not only in one. static void Main...
asked by 14.01.2018 / 17:43
1
answer

Compare substrings within a arraylist in java

My question is how can I find a string that is repeated within an arralist? I am making a system that is able to search any file name repeated within a specified route, to do this I lift everything on the route and charge it in ArrayList&...
asked by 03.01.2018 / 20:16