Questions tagged as 'ciclos'

3
answers

Can you help me find the error? repetitive cycle for C ++

I have to print the average of the approved grades and the average of the approved grades but I get it wrong. Does anyone have any suggestions? #include<stdio.h> #include<stdlib.h> #include<conio.h> int main () { int...
asked by 30.06.2017 / 00:00
1
answer

Get a Value of an Array in JavaScript

Greetings to all, I have the following JavaScript code: var Lista=[]; $.getJSON("php/consultas/TraerDatos.php", function( data ) { $.each(data, function(id,value){ var elemento = { 'Proyecto':''+value['Pro...
asked by 22.11.2016 / 17:23
4
answers

Program that does not end

I am doing a program, it is asked to enter 3 data, if the 3 are incorrect the program ends, I do a loop do / while and asks for the 3 data the problem is that the program does not finish and passes to analyze the following condition , how do I e...
asked by 07.11.2016 / 18:03
1
answer

Leave app in the background when closing Android application

In my main activity, I'm doing that every time there is internet send the sqlite data to the server of mysql clear only those that have not synchronized all that I have solved but the problem is that I want my application to close it already be...
asked by 20.12.2016 / 07:45
1
answer

How to make a counter that increases if a letter is not found in a word: AVA

Good afternoon! My problem is this, try to make a for loop so that I traversed letter by letter a word, and when I did not find it, the counter increased by one and my problem was that when I went through the whole word I increased by one...
asked by 01.08.2017 / 00:29
2
answers

Problems with Dictionaries

I am trying to use a diccionario as a switch , My code is: a = {'1': f1(x, y), '2': f2(x)} while True: try: selection = getOption() b = a[selection] break except Exception: print "Error"...
asked by 13.03.2016 / 18:47
3
answers

On different interpretations of the for cycle

How to read the for cycle of the code? I guess it reads like this: For each digit of type char read it and convert it to an array of characters or maybe like this: For each digit of type char read it and add it to an array of chara...
asked by 28.08.2017 / 04:53
1
answer

Save data in an array using foreach loop

Again I come to ask for help, this time I have to save the values of a variable inside an array and then show them, this variable is within a foreach cycle, I leave the code: $strProyecto = $conex->getIndCol('id', sqlProyectos());//proy...
asked by 14.08.2017 / 22:56
0
answers

Hello I have a question and it is about an ATM in pseint

I have to make a program that allows me to make a charge to an ATM with $ 50, $ 100, $ 200 and $ 500 bills. The doubt is that when a user realizes an extraction that is multiplo of 50, how do I discount the tickets that he extracted? And how do...
asked by 08.04.2018 / 02:45
0
answers

Error in reverse arrangement

I made an arrangement of 10 elements, and then another arrangement with the same amount of the 1st but the content is inverse, example: List 1: 1. 20 2. 34 3. 12 List 2: 10. 20 9. 34 8. 12 And so ... static void Main(stri...
asked by 13.02.2018 / 07:25