Do-while Questions
Ad
expected identifier (in C)
I am currently doing cs50 introduction to computer science: i started this code (written in c) where i have to code a pyramid based on what the
How to keep track of last position of "i" when reading in different integers from multiple files into a 1dim-array?
I want to read multiple integers into a 1 dimensional array from different files but how can i track at what position "i" stopped so i
While or Switch only detect lower-case and not upper-case in C
I would like the user to write a letter for a selection, the problem is that it only detects lowercase letters and not uppercase, could you help
infinite loop in C when the user enters a character instead of a number
I have a problem, i want to make the user enter a digit from 1.00 to 10.00 and if he enters a digit outside of that range i will display that he
how to make loops from smallest to largest number?
A = int(input("first number: ")) b = int(input("second number: ")) for x in range (a,b): print(x, end = ' ')
How to prevent an endless loop with try/catch exceptions JAVA
I am new to java and it is my first time ever dealing with try and catch statements. i am working on this project for my intro class and have run
Repeat function as long as fail condition is not met
I am creating a python roguelike which utilises proceduraly created dungeon maps. i decided to achieve this using pythons' lists. i created a 2d
Using a string on `while` in a `do {} while();` loop
I have a problem here. i want to terminate a do while loop in c using a string, but it seemed not to work. i tried putting the identifier outside
How to use the do while loop to push a string into an array multiple times?
I am very close...i think. trying to use a do while loop to push "i love the beatles!" into the array (n) amount of times including the 0 of
Python Selenium Do-While Loop
I am trying to complete a do-while loop with the below code. we are waiting for a report to process, and it only shows on the webpage once
Ad
No output when I pass "unhappy" number (e.g. 21)
Program stops working whenever i enter the "unhappy" number and does not print anything here is the output:
Creating folders from user input using while or do while loop
I'm having problem creating multiple folders using while,do-while loop in java.i tryed creating files and i had no problems but folders,different
Do/While not recognizing the character to end loop in C
I'm trying to write some characters in this "arq.txt" file and it works well at the beginning, but when i type zero to restart the
Non-function do while loop in C
I'm new to programming and was hoping i could get some help. i'm attempting to create a 'do while' loop in c as part of my cs50 problem sets. i'm
End of do-while loop in C language
I'm new to the language c and here i have a code to add any number the user inputs using a do-while loop. for example if they type in 1,
How to set a range in do/while range in c?
I want the user to input a height in range 2-8 inclusive if any other number is entered it should re-prompt user ... i have tried
C : Using a do-while, the program does not stop to get the answer to the question which needs to be evaluated
In the below code just before the ending of the do-while loop, there is a question asked. the program does not stop to get input. request
Why doesn't my nested for / do-while loop to sort through an array not output my final prints in C?
Why can't i get this loop to stop? my tracker is an array filled with a random number of elements in the range of 1 to 10. lets say the size of
I'd like to know what is the issue which cause wrong display in my code?
I'd like to know what's the problem where i want to write a function which, given a string, return true if all characters are distinct and false
Max and min of N numbers, using do-while
I'm learning c language and i'm trying to do the following exercise: take in input n numbers and print the maximum and the minimum, without using
How to do repeated sequence check
Question: repeated sequence check the program should enter a string (possibly containing blanks), and determine whether the characters are in
Ad
How do you make an do while loop not print unless it has to? Beginner
I am doing a practice test from school on java do while, however on this test i have encountered a problem. int x already has predetermined
How to avoid empty object error in a loop using Google Apps Script?
I'm calling an api and getting data going through its pagination. when i get to the last page, though, the obejct giving me the last page is empty
*** stack smashing detected ***: terminated error in C
I am trying to run a code that contains this function and i am getting the "*** stack smashing detected ***: terminated".
nested while loop inside do-while loop giving the wrong output
This program is supposed to output the corresponding numbers to the string that the user have inputted and supposed to allow the user to keep on
How do i print this Alphabets in this pattern/output : a B c D e F g H i J k L m N o P q R s T u V w X y Z
Using anyloop how will i print the code in a small and big pattern like this : a b c d e f g h i j k l m n o p q r s t u v w x y z
How do I use Do-while Loop and Switch statement?
I want the user to re-attempt the delivery rating only when the default case is invoked. i am facing error - cannot invoke
Writing a prompt inside a while-loop
I want the code to continue, only if the user inputs rock, paper or scissors, but it seems to continue after i re-enter any input the second time, despite it passing the
Ad
Blog Categories
Ad