Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
Ruby interprets the length of a non empty array as 0
dividebyzeroerror
functions
reverse
ruby
0 Votes
1 Answer
26th Feb 2017, 8:55 AM
Michal Nemecek
public class Program { public static void main(String[] args) { //fix the variable types string name =
0
error
line
0 Votes
2 Answers
25th Jul 2022, 6:12 PM
30 Nidhi Kumari 10B
User can enter any number any times but user input 0 program will be terminated
while
1 Vote
5 Answers
29th Oct 2017, 5:53 AM
Ayesha
i=3 while i is greater or equal to 0 print I I=i-1.....plz help
loops
python
0 Votes
3 Answers
21st Aug 2016, 3:19 PM
Prashant Patel
What is the output of this program?void main (){int a;a=100>>90>>80;printf("%d",a);} options are 0 1 error
c
program
3 Votes
3 Answers
16th Feb 2017, 1:02 PM
Iswarya
Why the output is no when we multiply a string by 0 instead of error?
strings
0 Votes
3 Answers
19th Apr 2019, 6:53 AM
Kamal Pal
When does garbage and 0 come into the picture while initializing array ??
arrays
c
garbage
0 Votes
1 Answer
5th Aug 2022, 3:02 PM
Learning
I need a program to replace duplicate value with 0 in matrix form .
c
cpp
language
1 Vote
1 Answer
16th May 2020, 7:51 AM
Om Sri
Why final value of I is 0 in following code Int I=0;I=I++; ?
java
0 Votes
3 Answers
28th Jul 2017, 11:42 AM
vineel kumar
i = 0 while 1==1: print(i) i = i + 1 if i >= 5: print("Breaking") print("Finished") break
loops
0 Votes
10 Answers
17th Dec 2017, 2:31 AM
Rohit Raj
check this code and give sln....has this any solution month is 0 - 11
date
0 Votes
1 Answer
2nd Oct 2018, 6:01 PM
Y.Lechebo
any of can answer me why it print 0 to 8 why not 0-9
c#
0 Votes
4 Answers
11th Apr 2017, 10:17 PM
Muhammad Rehan Khan
Which one is the best programming book (for beginner) ?A book which starts explaining programming from 0 to infinity level.
programming
12 Votes
3 Answers
31st Mar 2019, 5:58 AM
Prachi Chauhan
How the return value becomes 0 here? And what does complier do when we reach at the end of a function? Anyone please!
function
pointers
0 Votes
15 Answers
11th Jan 2021, 1:31 PM
<Saurabh Singh Rawat/>
I entered 0 instead of n under the else clause to fill in the last blank in the following.
answer
c++
challenge
incorrect
wrong
6 Votes
3 Answers
20th Nov 2019, 8:11 PM
Sonic
Getting Invalid syntax for the line4: bill = 0 What is wrong with the code?
error
python3
variables
1 Vote
2 Answers
4th Jul 2022, 3:40 AM
Ashok Ighe
so list string uses a 1 index, not the typical 0 index?
lists
python
0 Votes
2 Answers
18th Jul 2016, 11:23 PM
David Booker
How long will it take to be an expert in Java when I have 0 programming knowledge?
duration
java
programmer
self-learning
0 Votes
5 Answers
13th May 2019, 12:51 PM
akin akins
Using the do-while loop sum all the multiples of 5 between 0 to 100
c++
-1 Vote
4 Answers
25th Apr 2017, 9:32 AM
jesse
c = 0 for x in range(10): for y in range(5): c += 1 print(c)
python
-1 Vote
3 Answers
12th Jun 2021, 5:51 AM
Deepak Murmu
In these examples why is a first assigned value 0 before the increment or decrement?
javascript
operators
0 Votes
5 Answers
12th Aug 2017, 5:55 AM
HC Pieck
Conversion resulting in 0?
0
conversion
python
variable
0 Votes
10 Answers
26th Jun 2017, 9:09 PM
Piperman
total = 0 #your code goes here i=0 while i<5: age =int(input()) if age < 3: continue total+= 100 print (total )
code
python
python3
while
4 Votes
8 Answers
12th Feb 2023, 9:27 AM
Nuri
What will happen if I don't put return 0 in my program
c++
0 Votes
2 Answers
19th Jul 2016, 1:14 AM
harshith
i = 0 q = [1] h = [] t = [['4',1],[1,3],[2,3]] length = len(t) for i in range(0,length): h.clear() j = 0 for j in ra
lists
0 Votes
1 Answer
3rd Oct 2020, 7:33 PM
ravichandra reddy
Write a code in which input is name of person and output is a random number between 0 to 9.
c++
random
0 Votes
14 Answers
26th Jan 2018, 5:08 AM
Kundan
Why do we type return 0 at the end of a program
c++
0 Votes
2 Answers
10th Apr 2017, 4:18 AM
lohit jena
Use a while loop to display the following numbers 9 6 3 0 use C#
c#
0 Votes
3 Answers
18th Apr 2019, 10:24 AM
Ananias Nakale
When we multiply a string by 0 (zero) python why it gives No Output?
python
python3
strings
0 Votes
2 Answers
5th Oct 2019, 9:44 PM
Prashant Gill
var x=1; for(var i=0;i<3;i++){ x*=i; } alert(x); //output= 0 //do u have any explanation?
for
var
1 Vote
3 Answers
17th Jun 2017, 1:58 AM
islam moheb
How can one be able to loop a number e.g 100 to 0 using c++
c++
2 Votes
3 Answers
26th Feb 2018, 6:43 PM
Erick Kariuki Kanyoro
num = int(input()) def fibonacci(n): if n==1: return 0 elif n==2: return 1 else: return fibonacci (n-1) + fibonacci (
exsercise
fibonacci
python
series
1 Vote
7 Answers
23rd Dec 2020, 1:07 PM
ARNAV SINGH
Please explain..suppose m=6 then p=2 returns 0 ..p=3 returns 0..p=4 returns 1..what does it return and why??
c++
2 Votes
4 Answers
4th Jun 2018, 1:26 PM
Vikram
1 0 Comments Fill in the missing symbols to create a valid opening paragraph tag: p
0
1
a
comments
create
fill
in
missing
opening
p
paragraph
symbols
tag:
the
to
valid
1 Vote
1 Answer
25th Dec 2022, 11:48 AM
Nabeel Olv
I need help. I don't understand why it prints 0 instead of float number. Should i maybe use double?
c++
numeric-operations
variables
0 Votes
7 Answers
10th Jun 2022, 10:18 AM
Jan Wantusiak
Can someone explain to me why python doesn't accept number results without adding point 0 at the end
data-types
5 Votes
2 Answers
28th Aug 2019, 11:46 PM
Divine Darkey
What happen if we se return 1; in place of return 0;
0
necessary
return
why
5 Votes
2 Answers
16th May 2019, 4:43 PM
SK@123
While counting the index from right side in a list, should we start from 0 or -1 ?
python3
2 Votes
3 Answers
30th May 2020, 7:39 PM
Dhiraj Jaiswal
What does this code exactly mean? What does the 0 stand for?
java
0 Votes
2 Answers
28th Jun 2017, 1:45 PM
Tina
Why is 1 or 0 when i put x%=2 and my variable x i set 2 or another pair number
python
python3
1 Vote
5 Answers
3rd May 2020, 6:21 AM
Deysi Lucero Puscan Remon
please help me it gives me 0 as a result what is wrong in this code
#c
2 Votes
2 Answers
3rd Apr 2020, 12:22 PM
Abc def
How i get only Integer Part of number if the decimal part = 0 in Kotlin ?
kotlin
3 Votes
1 Answer
12th Jan 2022, 1:22 PM
Ahmed Seddiki
Write a program which takes array of numbers until user inputs 0 and adds them
.
array
arraylist
basic
easy
java
0 Votes
3 Answers
29th Mar 2019, 8:02 PM
kuku Debbarma
list = [1, 2, 3, 4] if (list) % 2 == 0 : print(list[ ]) anyone help?
python
-5 Votes
8 Answers
24th Mar 2017, 12:17 PM
Jay Sibley
Division by zero (Java)
0
division
divisionbyzero
java
2 Votes
2 Answers
5th Jul 2019, 12:36 PM
Panos
def func(x): res = 0 for i in range(x): res += i return res print(func(7))
function-arguments
modules
0 Votes
2 Answers
12th Aug 2020, 7:46 AM
Shubham Kumar
Why it is not show all number??? Only get 0 but not get 1 , 153,370,371,407
c++
loops
0 Votes
1 Answer
18th Feb 2024, 12:39 AM
Anuj Khare
Any way to generate all the numbers from 0 to 9 individually in string format and then saving in a variable?
python3
1 Vote
5 Answers
8th Apr 2023, 7:03 AM
Sujay Ghosh
What error in this code mathematicaly answer 3 but in this code answer is 0
c
0 Votes
2 Answers
25th May 2021, 8:47 AM
Ankit Kumar
(Module 40.1 )python core I am always getting output as 0 (output should be 45)
python
0 Votes
2 Answers
30th Apr 2021, 6:13 AM
Pranav Patil
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
10
11
12
...
18
Next >
Hot today
Is this realistic enough?
1 Votes
"Which is harder to master — Machine Learning or Cybersecurity? And why?"
1 Votes
"What’s the best way to combine creativity and coding? Can storytelling improve web apps?"
1 Votes
Need friends
0 Votes
MASS N NUMBER OF OBJECT DELETION FROM A CLASS
0 Votes
I am a beginner, please teach me how to use Python
0 Votes
Python
1 Votes
Can u learn multiple language at the same time, without misplacing the formats of each with the other
0 Votes
Web Development
0 Votes
Can someone please explain python for me
0 Votes