Questions tagged as 'bucle-for'

2
answers

save data to an object Using FOR

I have this for, the idea is to save the data in the object: let data_array = {}; for (var i = 0; i < data.length; i++) { //console.log("datos completos -> " + data[i].id_expediente); data_array = {...
asked by 28.06.2018 / 19:33
2
answers

FlieWriter with cycle for

I have this code and I want certain words to be modified and I take care that the cycle is modified so that it changes every time but it only modifies the file once, they could tell me where I am wrong or how to do what I am thinking. ? import...
asked by 04.06.2018 / 07:12
1
answer

* ngFor nested does not show the results

I have an object that I recover from Firebase that has a series of properties and one of them is an array. When I try to show the properties of the object using * ngFor and I have to show the array I use another * ngFor that is nested and...
asked by 27.01.2018 / 14:27
1
answer

How to do a little Christmas in PHP?

I have this code that this pine generates me But I want it to come out like this: <html> <body> <h2>Pinos Examen</h2> <form action="examenpinos.php" method="post"> Cantidad de nivel:<br>...
asked by 18.12.2018 / 23:37
0
answers

Divide with a loop in Fortran

I'm trying to create a program that divides my number by two until I reach the unit and that's where the program ends. program multiplicacion implicit none integer :: a integer :: b integer :: i print*, "Escribe dos n...
asked by 22.11.2018 / 23:19
0
answers

do not you look for me according to the regular expression generated by me?

I connect via FTP to the server and I make a list of what there is, and then I create a pattern to look for a file with a condition (* .bak), if puerto=='21': print('---->Entramos por el puerto 21') # Hacemos la co...
asked by 16.11.2018 / 14:16
0
answers

How can I apply a for cycle to several columns in a matrix?

I am working with EEG signal analysis. I have built the code to apply signal filters and apply pwelch. But I have not been able to apply a for cycle so that the process is repeated from one column to another generating the results I want per col...
asked by 07.11.2018 / 00:48
2
answers

Go through a file several times to make an FTP connection

I need to go through the file login.txt several times, as many times as users have (in this case I only have one user) with open("login.txt") as fichero: dirServer = fichero.readline().split(":")[1].strip() usuario = fichero.rea...
asked by 31.10.2018 / 10:36
1
answer

Work with fractions in Javascript

Good! I am creating a super simple calculator through forms, it is only based on this proposed systems of equations resolver: link The problem that arises is that when entering a fraction of the type "x / y", the parseFloat that is in the l...
asked by 31.10.2018 / 20:45
2
answers

How to check if there is a number in an array?

I have this arrangement. The letters move only if the next position is a zero and my question is how can I check if the next position is a zero? // Part of my code System.out.println("¿A que numero desea moverla?");...
asked by 04.11.2018 / 21:40