Questions tagged as 'loop'

0
answers

Loop to affect all records in a table

I wanted you to help me in the next one, I wanted to execute the code that I will show you under a button so that it would automatically do it when I clicked on it. The program works as follows: first I have to insert a code in a textbox to c...
asked by 15.12.2014 / 17:17
1
answer

How to use FOR to INSERT within a function in ORACLE?

I have the following function: FUNCTION PERSISTIR_CR( p_AnoExercicio TB_CONFIGURACAO_EXERCICIO.NUM_EXERCICIO%TYPE ,p_CodCR TB_CESTA_ROTINA.COD_CESTA_ROTINA%TYPE ,p_CodUG TB_CESTA_ROTINA.COD_UG%TYPE ,p_Pc...
asked by 14.04.2014 / 18:40
3
answers

Execution or not of the increment in loops for [closed]

Code 1 : var x = 1; for( ; x<6 ; x+=2 ){ x=x*x; } console.log(x); In the above code even if the condition is false the part that increments is executed the last time. Code 2: var x = 0; for( ;...
asked by 19.10.2017 / 18:54
1
answer

Loops based on a flowchart

How do I write code for a loop based on this flowchart? It has do...while . I need a straightforward answer with nested loops.     
asked by 02.11.2017 / 03:54
2
answers

Tabuada calculation in Java, using repetition loops

I can not resolve the following exercise:    Display the results of a number table. You enter the value you want. The table should be run from 0 to 10, using the looping technique with logical testing at the end of the looping. I can only...
asked by 27.04.2018 / 16:47
2
answers

Loop for ATM

I need to run this code until the user prompts to exit. In the case, it will inform the result at the end and follow with a question to the user if he wants to continue using, hence the code executes again until the user exits. namespace Ca...
asked by 15.09.2017 / 22:45
1
answer

What are the differences between repeat structures while, repeat and for?

Friends, I'm learning logic programming and came up with this doubt when I should use these commands and their differences.     
asked by 30.03.2016 / 23:01
3
answers

Make a static method in the main class that writes on the screen all even numbers from 1 to 10000 that are palindromes

This is my method: public static void B() { int vet[]=new int [100]; int vet2[]=new int [vet.length/2]; for(int i=0;i<=vet.length;i++) { vet[i]=i+1; } for(int i=0;i<vet.length;i++) { int rest...
asked by 09.03.2017 / 11:04
1
answer

What is a recursive method?

Is the resultado variable within for recursive? #include <stdio.h> int main(void) { int N,i; double resultado=0.0; scanf("%d",&N); for (i=0; i<N; i++) { resultado= 1.0 / (resultado+2); } printf("%0.10lf...
asked by 21.08.2018 / 20:16
1
answer

Why is it infinite loop in println?

   Build a program that is capable of averaging all   whole or actual arguments received from the keyboard and print them.       Invalid arguments should be disregarded (Print a message   for each invalid value.), without triggering exceptions...
asked by 17.09.2016 / 01:37