Questions tagged as 'bucles'

1
answer

Success Juggler in Python

I have to create a program that asks the user for natural numbers or 0 to finish and for each number that the user enters, the program must create a juggling sequence and display them on the screen. In turn, when the program ends, you...
asked by 29.11.2018 / 15:43
2
answers

Variable and Loop in JavaScript

I'm trying to understand the basics to have solid foundations. At the moment I'm doing an exercise to recover some fictitious tweets. I am making an effort to understand well the reason of all the development of the loop and I have something...
asked by 29.11.2018 / 04:09
1
answer

for vs forEach vs. map

Working in JavaScript, I have two arrays that I need to combine to generate a concatenation of all its elements, for example: var array1 = ["A", "B", "C"]; var array2 = ["1", "2", "3"]; resultado = ["A1", "A2", "A3", "B1", "B2", "B3", "C1", "...
asked by 07.10.2016 / 15:12
3
answers

Determinant of a 3x3 matrix

Hello good night I have a question about how to do the operation to obtain the result of a 3x3 determinant, I have been looking for ideas on how to put it in my code but I can not understand it: /, until now I only have the matrix printed, I jus...
asked by 03.08.2018 / 03:20
1
answer

I have two WHILE loops and the second one skips

I am trying to make a program for which I need to store different values in two vectors. To read the values I use two equal WHILE loops, but the one from the second vector is skipped. What happens? The final goal is to see if one vector is a...
asked by 12.09.2018 / 10:12
3
answers

Loops nested in R

I have 3 dataframes that contain the following information: df1 COD LON LAT ALT C037 -289.976 432.165 162 E000 -274.107 430.783 218 C068 -228.623 428.395 596 df2 #So many data by COD as dates (which...
asked by 15.05.2018 / 10:50
1
answer

Avoiding the use of For

Once again here trying to do things without the use of for , I have a problem that has a solution with for but I would like to give it a focus without for . The problem is that I have some data with days and I want to creat...
asked by 03.06.2018 / 15:53
2
answers

The line of the printing code does not print well

I made this code when I asked for the data, but afterwards when I want to show the data I asked for the printout goes wrong, could you please tell me what I have to do to make the printout please. I leave an image so that they see the final impr...
asked by 03.09.2018 / 02:54
2
answers

Fill a html select by means of a javascript cycle

I want to fill a select dynamically with years, starting from the year 2000 to 2050, through a for javascript. But the code still does not work for me. HTML <select id="año"> </select> JAVASCRIPT select = document.getElemen...
asked by 02.08.2018 / 23:33
5
answers

Restart while while JavaScript

I have been testing some things in JavaScript and, since I am learning, in practice I have encountered an error executing a cycle while() that I describe next. What I need is to make a prompt() that asks for a password to...
asked by 08.08.2018 / 06:10