Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
In this code why the outside cout statement prints 0 , it should print 1 ??can anyone explain it??
c++,
coding
question
1 Vote
2 Answers
28th Jun 2019, 9:55 AM
Mohd Baqer Haider
What does string part do in console.writeline method and why we assign 0 to x and 1 to y?
c#
-1 Vote
5 Answers
3rd Sep 2016, 10:15 AM
Vivek Vishwakarma
words = ["hello", "world", "spam", "eggs"] counter = 0 max_index = len(words) - 1 while counter <= max_index: word = words
counter
0 Votes
4 Answers
11th Jun 2018, 4:20 PM
Anurag
What's the problem in my code if it's showing "(" expected line 0 in loan calculator challenge
"("
calculator
expected
loan
0 Votes
1 Answer
29th Sep 2022, 4:56 PM
Mohd Nadeem
why this output 0 ? #include <iostream> using namespace std; int main() { double x=(7%6)/2*5; cout<<x; }
c++
0 Votes
3 Answers
30th Aug 2016, 5:15 PM
Lekhraj Singh
To replace all the occurrences of the number n with 0 in the given array
c++
1 Vote
1 Answer
22nd Nov 2016, 5:27 PM
Hari Haralan
Can you guys help me out ? The result of sum is 0 after I choose the variables and select s
c++
1 Vote
3 Answers
22nd Apr 2020, 3:09 PM
marya collegework
May i know what code should i use if i want to default a string to a 0
java
1 Vote
3 Answers
7th Mar 2017, 1:15 PM
AlexL
What is the output of following program Options: a) 5 b) garbage c) 0 d) none of the above
error
java
program
question
0 Votes
2 Answers
29th Oct 2020, 6:43 AM
Atul Gautam
what is the script on how to calculate the average of numbers from 0 to 100 inclusive
javascript
operators
0 Votes
3 Answers
20th Oct 2016, 9:14 AM
kelvo obiorah
Please can someone create a code in jscript that sets a countdown timer and when the timer reaches 0 , it executes a function.
javascript
4 Votes
3 Answers
6th May 2018, 6:15 PM
Chidera Melvin
How is this equal to 10 var arr =[1,2,3,3,2,0] var x = 0 for (var i=1; i<arr.length; i++){ x+= arr[i] } alert(x)
https://code.sololearn.com/wufk4avd3ydi/?ref=app
0 Votes
6 Answers
23rd Sep 2018, 12:11 PM
Adebayo Ogunmoriyele
list = list(range(101)) i = 0 while i <= 100: m = i%2 if m == 0: index = list[i] print(index) i = i + 1
loops
while
1 Vote
9 Answers
16th Apr 2019, 5:56 AM
ALBERT SAURAV
Fill in the blanks to print EVEN (multiples of 2) values from 0 to 20 using a for loop:
c++
loops
-1 Vote
3 Answers
10th Dec 2020, 4:22 AM
Walaa Alajamy
What do I must know before starting a WebDev course from 0 exp in coding?
coding
web
0 Votes
1 Answer
17th Aug 2017, 9:24 PM
Andres Gornatti
How do count Affect the function. What is 0 and 1. Is this just INDEX or just counting number like WHOLE NUMBER.
count
if-statements
loops
1 Vote
5 Answers
29th Jan 2021, 10:48 AM
We Doru
Challenge: Random number generator based on an parameter from 0-100 that reprezents the chance to output a bolean 0 or 1
challenges
genetator
number
random
1 Vote
5 Answers
9th Nov 2017, 5:14 AM
Meemknight
(c#)how to create random double values in the range of 0 to 100 of required number using do while loop
sololearn
0 Votes
4 Answers
27th Oct 2020, 3:29 PM
ramandeep kaur
Console.writeline("x={0};y={1}",x,y); when we change the values of from 0 to 1 and 1 to 2 it gives errors.
output
0 Votes
2 Answers
29th Apr 2018, 5:24 AM
Devashish Shukla
What is the answer to. >>>(17+94)/(-5+ _ ). It is ment to add up to 0 -5 5
python
0 Votes
3 Answers
8th Jan 2017, 1:29 PM
capri
In python ; how can i test if a character exist or not in a list that begin from 0 to 9 ... or from list a to z ?
character
exist
in
python
string
6 Votes
8 Answers
19th Aug 2019, 7:38 PM
Abdelkader Barraj عبد القادر البراج
Write a program that takes an arbitrary positive integer as input and calculates and prints the number of digits 0 to 9 in it.
python
1 Vote
2 Answers
25th Dec 2020, 12:55 PM
a.m
Is this possible to make a program that show output random number 0 to 5 according their different probability?
c++
0 Votes
4 Answers
7th Aug 2016, 8:23 AM
Lekhraj Singh
Почему в практике по функции rand() в условии нужный диапазон от 0 до N, а правильным считается решение с диапазоном от 1 до N?
problem
2 Votes
4 Answers
25th Apr 2022, 2:11 PM
Сергей Дьяченко
Why is the first log 0 and the second, 1 and so on. ... In the console i don't get it
javascript
1 Vote
2 Answers
14th May 2022, 8:26 AM
JSON🌠
How long does it normally take to grasp coding? Just started and this makes absolutely 0 sense to me.
code
-1 Vote
3 Answers
11th Mar 2022, 10:20 AM
John Fortune
int main() { int i=4; int ii=i*i; int iii = ii*i; cout <<iii/ii-i<<endl ; //Outputs 0 return 0; }
code
output
1 Vote
3 Answers
3rd Jul 2017, 10:09 AM
Kushagra Agarwal
In Turbo C, while mentioning return 0 it never shows the output but mentioning getch it always shows output of any program. Why?
data-types
2 Votes
3 Answers
21st May 2020, 4:22 AM
Lavanya Shinde
Run and check the output of this code and explain why it is printing 0 ?
c++
challenges
java
python3
sololearn
0 Votes
2 Answers
4th Aug 2017, 7:00 PM
Deepak Ranghar
What does this mean: The line return 0; terminates the main() function and causes it to return the value 0 to the calling proces
return0
1 Vote
4 Answers
25th Oct 2017, 4:15 PM
BLAQking
Why is 0 left out in the output when I use the continue statement within while loop?
continue_statement
loop
python
0 Votes
1 Answer
7th Dec 2022, 9:42 AM
Haru
#I'm a beginner help me to fix out.. Write a program where the computer randomly generates a number between 0 and 20.
python
1 Vote
3 Answers
14th Mar 2020, 5:04 AM
SelvaKumar
Why is it so that even without using return 0, the program runs? What's the actual use of return 0
c++
0 Votes
4 Answers
28th Feb 2016, 5:19 AM
Ritwik Madhukalya
What is the use and importance of the "Return type " function and also return 0 .
return
0 Votes
1 Answer
22nd Jun 2018, 6:48 PM
Kanana Kanana
As people said that if return return any other value not 0 that means it's an error. Checkout this code it knew my error.
error
return
without
1 Vote
5 Answers
28th Jun 2019, 12:13 PM
The unknown 321
What is meant by range in data type of c;like char has a range from 0 to 255?
c
data-types
range
1 Vote
2 Answers
18th Nov 2016, 4:18 AM
Sangharsh Seth
how can i run this BASIC CODE On sololearn let j= 0 print j let j=j+1 if j<=10 goto line 2 end
haaaaa
0 Votes
4 Answers
2nd Jun 2019, 11:27 AM
Hassan Isah
Write a C program to search all occurrences of a word in given string using loop Array Index starts from 0
c
c++
strings
0 Votes
2 Answers
29th Feb 2020, 5:16 AM
Somya Sarathi Samal
Why The Characters are not coming properly and Only 0 is working plzzz tell and also make a Fixed one plzzzz
ggg
1 Vote
3 Answers
20th Sep 2020, 5:14 PM
Gamer Stream
How do u write a python function with parameter n , which prints square numbers between 0 and n inclusive
difficult
to
0 Votes
4 Answers
28th May 2017, 4:15 PM
Tumisang
Which of this number is gapful<e.g. 200/20=10 because the first 2 and the last 0 is divisible by 200
math
1 Vote
1 Answer
7th Nov 2018, 2:18 PM
Babatunde Oluwaninyo Eric
By the way can you tell me what is the function of void return 0 in a c program
c
main
return
0 Votes
1 Answer
30th May 2019, 5:54 AM
Prakash munjewar
Can't any other integer beside 0 and 1 begin the iteration process of the While loop?
c++
loops
0 Votes
1 Answer
28th Apr 2017, 7:06 PM
Yemi Ayinla
Array size 50 fixed and print random numbers with 0 to 100.Do not allow any duplicates
java
-1 Vote
1 Answer
18th Oct 2018, 9:31 AM
Ananthavalli A
Int count=0; For(int i=N; i > 0 ; i/=2) { For(int j=0; j < i ;
c#
-2 Votes
2 Answers
19th Mar 2017, 7:00 AM
lalith narayan
In this ex:- letters = ['p', 'q', 'r', 's', 'p', 'u'] print(letters.index('p')) why the ouput is 0 only we it is not 4
lists
0 Votes
4 Answers
7th Apr 2020, 7:38 AM
Mandadi Praveen Kumar
Can you compare 2 strings (the strings contain the same characters) and get 0 as the value of their comparation?
c++
strings
0 Votes
4 Answers
8th Jan 2017, 8:50 AM
Dinu
Is this a bug in c/c++.. chars and strings inputs are considered as they were 0 in comparison!?
bug
c
c++
in
1 Vote
2 Answers
23rd Nov 2017, 9:10 PM
Fahem
Given an array containing n distinct integers in the range [0,n](inclusive of both 0 and n). Find and return number not in range
arrays
c++
0 Votes
2 Answers
19th Feb 2024, 3:19 PM
Anuj Khare
Can you help me with a clock?
0
clock
code
help
if
0 Votes
3 Answers
30th Aug 2018, 3:14 PM
Artur Spain 🇪🇸
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
13
14
15
...
18
Next >
Hot today
[OFFICIAL] 💘 Cupid’s Code Picks – Valentine’s Code Challenge 2025 Results
9 Votes
Data Analysis Course
1 Votes
Time up code for data revision
0 Votes
Web vs python
0 Votes
Is there LUA?
0 Votes
I want to learn why this error occurs in "while loop" function of Pythone.Can someone explain to me?
1 Votes
Which courses should i take for robotics?
1 Votes
url of code playground for HTML, CSS & JS
0 Votes
Is there a way to report something wrong?
0 Votes
Is it possible to see what modules come by default the Code Playground?
0 Votes