Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
Why we use return 0 not return 1 or return 2 or any thing else?
c++
0 Votes
2 Answers
27th Jun 2018, 4:18 PM
Parul Kashyap
def h(n): f = 0 for i in range(1,n+1): if n%i == 0: f = f + 1 return(f == 2)
python3
0 Votes
5 Answers
16th Feb 2018, 3:20 AM
I Am a Baked Potato
You are given a program that outputs all the numbers from 0 to 20. Change the code to make it output only numbers that are mult
c++
0 Votes
12 Answers
2nd Nov 2020, 9:52 PM
Horilal S Nirmalkar
Why does this output 0??
0
c++
help
output
1 Vote
3 Answers
21st Jul 2020, 2:03 AM
InDeedOut
It gives 0 as a result please help me I am desperate
c
0 Votes
1 Answer
3rd Apr 2020, 12:15 PM
grab crep
How can I make a tally counter takes input equal 0 to reset to zero and other numbers to count
c++
1 Vote
9 Answers
28th Dec 2020, 8:07 PM
حازم الباز
Even without using return 0 I was getting the right output so what is it's use then?
c++
5 Votes
2 Answers
2nd Mar 2017, 5:18 AM
Lol
What is the output of this program if the input: 1 2 3 4 -5 0 26?
java
0 Votes
4 Answers
21st Feb 2020, 1:45 AM
JOHANNA POLOABAD
Can we create very complex apps with 0 cost by using python only
python
0 Votes
1 Answer
18th Apr 2020, 3:04 AM
Ujjawal Gupta
Hi Everyone! I'm trying to create a Time converter that converts Days into seconds, and the error says "line 0 ";" expected"
java
lineerror
timeconverter
0 Votes
3 Answers
30th Nov 2020, 8:26 AM
Bryle Macasuhot
help me,i want to print the number which i have assign 0 to 10 places;
help
0 Votes
2 Answers
2nd Jun 2018, 12:18 PM
Bahubali
Why we are using alphabets(A to F) in hexadecimal systems instead of using numbers after 0 to 9???
a
f
for
reason
to
1 Vote
3 Answers
2nd Jul 2019, 2:20 PM
Devibala P
How do I make it say ‘Error’ when input for factorial is 0
python
0 Votes
1 Answer
31st Jan 2019, 5:31 PM
Jordan Perry
Добрый день в задании деление на 0 не ввести значение какой то лаг
python
-1 Vote
3 Answers
17th Aug 2017, 12:54 PM
Малышев Андрей
why when I write: #include <iostream> using namespace std; int main() { cout <<"Hello world!"; return 0 } int main() { ----It says ERROR
c++
cout
0 Votes
21 Answers
28th Jun 2016, 6:47 AM
L-ka
What is the difference between return 0 ; and return 1; in c++ i can hardly underrated??
totallycofused
1 Vote
3 Answers
27th Sep 2017, 8:27 AM
Prateek Gupta
Write a program to find all Armstrong number in the range of 0 and n.
challenge
1 Vote
3 Answers
4th Sep 2017, 9:28 AM
Puneet Kumar
Can any one help me to correct this code. ( age group) chill : 0 to 11. Teen : 12 to 17. Adult: 18 to 64.
age
boolean-logic
python3
1 Vote
15 Answers
3rd Feb 2022, 5:55 AM
Abdulatif Mohamednor Mohamed
why we use only 0 (not other digits) after return in main function
c++
0 Votes
2 Answers
18th Oct 2016, 1:08 PM
vikash tiwari
In C programming, what is the difference between return 0 and return 1? And why this return 1 also executes my program?
c
0 Votes
3 Answers
13th Apr 2021, 7:53 AM
kushagra saruparia
Can someone explain why some methods, statements, special characters begin with 0 while other with 1?
range
1 Vote
1 Answer
6th Apr 2018, 6:58 AM
Boring Troll
why y is always 0 no matter what input I enter? please help
beginner
help
ruby
0 Votes
2 Answers
12th Nov 2016, 11:51 AM
Catalin Dervesteanu
How do I choose a random number other than 0 and 1 in JS?
js
random
0 Votes
1 Answer
12th Apr 2019, 12:44 PM
Jacob
If compiler adds defaultly return 0 then why we put it in the code?
0
add
at
can
compiler
defaultly
end..eventhough
return
we
why
0 Votes
1 Answer
10th Mar 2019, 5:06 AM
joshua
How to make the step value when user enter 0 auto set as 1?
c#
0 Votes
1 Answer
4th Jun 2020, 6:00 PM
Kyrene
The value of 'n' is coming 0 even after the input is all numbers. please help!!😢
answer
c
coach
code
divisible
level
medium
strtol
1 Vote
2 Answers
30th Jul 2021, 5:51 AM
Gargi
Why array index value starts from 0 ? Why not from 1 ?
.net
c
c#
c++
java
php
0 Votes
2 Answers
24th Dec 2016, 10:25 AM
الواجد
Why is the output 0 2 2 4 4 for this for loop?
for
java
loop
0 Votes
2 Answers
9th Sep 2017, 1:03 AM
Kajal
WHY I am not getting random values between 0 & 6 using following codes ?
rand
2 Votes
2 Answers
23rd Mar 2017, 7:15 AM
Mr.Curious
If I understand correctly I shout use void() only when a function has 0 parameters?
c++
function
parameters
void
0 Votes
2 Answers
11th Apr 2020, 1:22 PM
Radoslav Kostov
Create program to determine odd or even numbers. Double if even, triple if odd. Return 0, if 0
elif
else-statements
even
if-statements
odd
0 Votes
4 Answers
18th May 2021, 8:23 AM
Faz 'Straps' Zaf
A challange for YOU :: WRITE A PROGRAM TO FIND ALL ARMSTRONG NO. BETWEEN 0 - 999 👍
challenges
code
cpp
java
javascript
php
python3
ruby
3 Votes
4 Answers
12th Nov 2017, 6:19 AM
urmomgay
Anyone know why is code when I type word and then guess is keeping tell me 0 as infinite times
python
0 Votes
6 Answers
2nd May 2020, 3:39 PM
Amxl Amixul
return (numerator / denominator) % 1 if denominator else 0 (can someone explain this )
python
0 Votes
1 Answer
20th Feb 2022, 7:12 PM
Ashish kumar
I code about 10 codes but still my coder % is 0 , on what basis they judge your coding
codeplayground
coder%
sololearn
3 Votes
7 Answers
22nd Apr 2017, 8:41 PM
Simranjeet Singh
What is the actual meaning of Return 0 in C++. Can someone please elaborate on this topic.
beginner
c++
coder
coding
mit
pls_help
return_0;
2 Votes
2 Answers
5th Apr 2021, 8:33 PM
Kushagra Pankajrai Bothra
Anyone help me to solve this one.... 0 909 89098 7890987 678909876 56789098765 4567890987654 345678909876543 23445679098765432 1234567890987654321
c++
1 Vote
4 Answers
1st Oct 2016, 3:48 AM
SAMBHAV KUMAR THAKUR
Write the code to end the loop when the user enters 0 and the output the resulted list after the while loop ends.
python3
0 Votes
8 Answers
17th Oct 2020, 7:48 AM
Rahul Prasad
Quick question about file size.
0
1
question
storage
4 Votes
3 Answers
4th Jul 2017, 8:17 PM
Cheesy Game Studios
def fb(n): if n==0: return 0 if n==1: return 1 else: return(fb(n-1)+fb(n-2)) print
(a)
8
1 Vote
1 Answer
30th Mar 2017, 4:21 PM
Samuel Akosa
What retern to 0 or somthibg in java sry i'm a rly noob
c++
-2 Votes
1 Answer
3rd Dec 2016, 11:04 AM
Georges Hajjar
But why it is 0 - 5 remainder in modulus. If I in calculator 8 divide 9 I get remainder 8. Please can someone explain me?
cpp
0 Votes
22 Answers
13th Jul 2018, 6:31 AM
Rytis Karalius
print ((1j**2).real) --> - 1. 0 how does it work? Where can i find the answer?
duel,
game
0 Votes
2 Answers
6th Apr 2018, 10:26 AM
Greenman
The code was supposed to print the numbers from 0 to 10. Why the output is reversed?
c
0 Votes
2 Answers
10th Mar 2020, 2:49 PM
Dipra Irham
Can anybody explain me how textarea length is zero ( 0 ).... I am beginner need help.
javascript
0 Votes
3 Answers
3rd Jan 2020, 6:17 AM
Megamind The Gamer
Why we used return 0 in c we can't use return 1 or return 2 or return 3
no
0 Votes
3 Answers
2nd Jul 2019, 10:06 AM
Vemana Srinivasulu
C program to print event number from 0 to 100 but i dont know what is event number??
c
language
1 Vote
3 Answers
1st Jul 2019, 11:49 AM
Gaurav Rawat
Even we write any other numer after return 0 still it prints correct output
program
return
0 Votes
1 Answer
2nd May 2019, 9:22 AM
Kiran Borade
if SQL counts from 0 then in between operator why it count from 1
sql
where
0 Votes
2 Answers
16th Dec 2016, 6:33 AM
Saiyyed aman ali
Let's have an array of N elements. And I need to make all 0 elements to come to last in array
arrays
2 Votes
5 Answers
12th Sep 2021, 11:37 AM
GURURAJ KL
Ask a question
Ask a question
< Previous
1
...
11
12
13
...
18
Next >
Hot today
Is this realistic enough?
1 Votes
𝙵𝙸𝙽𝙳 𝚃𝙷𝙴 𝙸𝙽𝙿𝚄𝚃 𝙾𝙵 𝚃𝙷𝙴 𝙿𝚁𝙾𝙶𝚁𝙰𝙼
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
Can someone explain inline and block elements please
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