Questions tagged as 'loop'

1
answer

How to repeat a html snippet using php loop?

<div class="container"> <form method="POST" action='enviaMform.php'> <div class="form-group"> <label for="nomeHost">Host que pretende monitorar:</label> <input type="text" class="f...
asked by 04.09.2018 / 20:59
1
answer

Game resolution Sudoku giving infinite loop in C

I have the following code in C : #include <iostream> #include <stdio.h> #include <stdlib.h> #include <time.h> // Variáveis globais int jogo_tabuleiro[9][9] = {0}; int func_quadrante(int quadrante, int numero) {...
asked by 20.06.2016 / 00:00
1
answer

Foreach repeating the same content

Scenery I have a form and via POST submitting to the page preview.php 10 song names that are divided between 4 arrays. I can generate the 10 divs containing the position array but when I create foreach for the artist I have a...
asked by 16.09.2014 / 19:08
2
answers

While Within While (While Main Stops)

I need to create 2 loops going from 1 to 10, just one inside another. WORKS Using for and for. Using while and for. Why does not it work? 1) WHILE AND WHILE int a=1, b=1; while(a<=10) { while(b<=10)...
asked by 27.03.2018 / 17:19
1
answer

Code goes into infinite loop

Why is this code in loop infinity? #include <stdio.h> #include <stdlib.h> #include <conio.h> int main() { int i; float salario[10], valorDataBase, salarioReajustado[10]; printf("Informe o percentual de reajuste da data-...
asked by 22.11.2018 / 18:35
1
answer

How to make two loops for the same code only go varying the columns of the courses and the columns of the questions?

I have a date.frame with many codes in the rows and many columns of questions, I'm making the simple frequency of each question would like to know how to vary the courses and questions at once, without having to manually repeat the code I gene...
asked by 09.06.2018 / 17:14
1
answer

How to invert the loop result order in PHP? [duplicate]

I wrote a code based on tutorials that I saw to show user information database information in tables but I would like it to reverse the order of the results. How can I do this? <?php // se o número de resultados for maior que zero, mostr...
asked by 09.10.2016 / 17:42
1
answer

Repetition structure within the selection in visualg

Function: Write a program that creates an initially zeroed vector and inserts a value into the vector at an informed position. For example, for the empty vector v = {}, position 4 and value 10, the program must generate v = {, 10}. If the positi...
asked by 29.10.2018 / 18:57
1
answer

ngFor with checkbox you are selecting all values

I have the following checkbox with a repeat structure: <div *ngFor="let tela of telas" class="custom-control custom-checkbox check"> <input type="checkbox" id="{{tela.nome_tela}}" [(ngModel)]="operador.permissao_telas" n...
asked by 23.07.2018 / 22:31
2
answers

This code is leading me to an infinite cycle and I can not understand why

This code is leading me to an infinite cycle and I can not figure out why. #include <stdio.h> #include <stdlib.h> #include <time.h> void troca (double *n1, double *n2) { double n; n = *n1; *n1 = *n2; *n2...
asked by 20.12.2017 / 20:51