Kursy
Kursy
Kompilator kodu
Kompilator kodu
Dyskusja
Cennik
Zespoły
Zaloguj się
Zarejestruj się
Menu
Dyskusje Q&A
Szukaj
Szukaj
Zadaj pytanie
Zadaj pytanie
Why keep the notation of starting at 0 for counting? It's obviously confusing when learning, and I'm guessing that it leads to all kinds of mistakes?
0
all
and
at
confusing
for
guessing
i'm
it
it's
keep
kinds
leads
learning,
notation
obviously
of
python
starting
that
the
when
why
yo
1 Głos
3 odpowiedzi
1st Dec 2016, 7:38 AM
Abbass
Is solo learn your best community for learning and practice programming? In scale of 0 to 10 rate it. I give it 10
b
-1 Głos
2 odpowiedzi
6th Dec 2019, 6:48 PM
April Mahlatsi Motaung
What is the purpose of Nullable types in C#? Can we just assign a value of 0 instead of using null?
beginner
c#
nullable
problem
type
0 głosów
1 Odpowiedź
1st Aug 2017, 4:56 PM
Gerald Taccad Cauilan
I don't understand why my code exits my for loop after assigning x a value of 0 can someone please explain
arrays
c#
for
loops
0 głosów
1 Odpowiedź
3rd Dec 2017, 2:10 AM
kenneth Stanley
"A base-n literal consists of the digits 0 to n-1, with a to z (or A to Z) having values 10 to 35."??
change_default_base
int()
python3
0 głosów
1 Odpowiedź
8th Dec 2020, 12:11 AM
rodwynnejones
program in c++ to compare two strings and return 0 if the two strings are equal and -1 is strings are unequal
c++
help
0 głosów
2 odpowiedzi
23rd Jan 2018, 3:56 PM
Raj Zamal
float x=0; x+=0.0000000 x+=0.0000000 x+=0.0000000 x+=0.0000000 x+=0.0000000 x+=0.0000000 x+=0.0000000 ... Then, x is not 0 Why? I don't know differ of float and double...
c#
1 Głos
2 odpowiedzi
14th Sep 2016, 3:05 PM
윤석진
def func(x) res=0 for i in range(x): res+=i return res print(func(4)) how is answer is 6. after running the code line by line, wont return res terminate the loop and return value 0 to print?
python
2 głosów
4 odpowiedzi
2nd Aug 2016, 5:40 AM
Roshan Maharjan
What does the code #include<iostream> using namespace std ; return 0 will output . I bet you will answer but i will take time
,0
error
node.js
1 Głos
2 odpowiedzi
10th Sep 2017, 5:11 PM
Abhay Singh
Can anyone explain me what is the use of return ??? What is the difference between return 0 return 1 return 4*factor(n-1)
c++
recursion
0 głosów
2 odpowiedzi
23rd Oct 2016, 1:39 PM
Pradeep C
Hello, I used Class to find the Volume of a sphere by using the rule: volumeSphere=3/4*π*r³ but i dont know why the output is 0
c++
class
help!
1 Głos
2 odpowiedzi
23rd Jan 2018, 4:29 PM
RiGeL
I am a beginner,while studying c++ to end program we should use return 0,but when i change 0 to99 ,code was still working,
c++
0 głosów
1 Odpowiedź
6th Apr 2020, 12:59 PM
Sameer Kulkarni
Construct a logical expression to represent...a)m is between 0-9 inclusive but not equal to 3. b) n is btw 0 -7 but not even
c++
program
trending
urgent
1 Głos
1 Odpowiedź
6th Mar 2018, 2:12 AM
ibiang daniel
hello guys i started the back to school contest, but i did one course (Git) and when i was done, i saw that my lessons is 0 why
lesson
this
why
zero
1 Głos
1 Odpowiedź
21st Aug 2020, 10:33 PM
K∆J∆"ST∆R📲🎧..🎤💝🎶
If you give 3 inputs the inputs are may or may not different from each other 1) if the inputs are different print 1,2)same pri 0
c
0 głosów
2 odpowiedzi
6th Sep 2018, 5:47 PM
Vignesh
shouldn't an array of integers containing 9 elements be int a[8]; as the array starts from 0. and 0 to 8 would be 9 elements. please explain.
arrays
c++
0 głosów
3 odpowiedzi
21st Sep 2016, 2:45 AM
Rick
create a function that implements an algorithm to convert decimal numbers between 0 and 255 to their binary equivalents and for invalid input, return string Invalid input.
python
0 głosów
3 odpowiedzi
7th Sep 2016, 2:34 PM
brian
when reaching num value to 1 then the method called again and and again with argument 0 (num-1) then how it is working
c#
recursion
0 głosów
1 Odpowiedź
4th Jul 2016, 6:10 PM
Seenivasan
Why bool is of size 1 byte ...and its only 1 or 0 so how its size became 1 bytes not 1 bit..???
bit
memory
0 głosów
1 Odpowiedź
24th Nov 2016, 5:05 AM
Ramakant Vishwakarma
hrs = raw_input('Enter hours:') h = float(hrs) rate = raw_input('Enter rate:') r = float(rate) pay = 0 if h <= 40: pa
python
-2 głosów
1 Odpowiedź
5th Oct 2021, 11:38 PM
Rv Chaudhary
Excuse me, what if in a foreach loop in php I had to start from a specific item of the array rather than the index 0 ??
arrays
basics
foreach
index
loops
php
0 głosów
2 odpowiedzi
30th Nov 2019, 1:47 PM
Akhil Anand
What happens if we partially intialize an array?
0
1
2
a[3]={1,2}//
int
output
2 głosów
1 Odpowiedź
19th Nov 2017, 10:12 AM
Anthem
a = 12 b = 3 c = 0 print ("a=12,b=3") c = a + b print ("1)c = a + b"),c i=input("1):") print (i,c) print (i==c)
(i==c)
1 Głos
2 odpowiedzi
6th Oct 2017, 2:00 PM
Antelex
Given the age of a person as an input, output their age group. Here are the age groups you need to handle: Child: 0 to 11 T
-5 głosów
1 Odpowiedź
31st Jan 2022, 7:16 AM
mahdi
In this why use "using std; " I am started with conio.h why use int main why not use clrscr why use return 0 why not use getch
c++
1 Głos
2 odpowiedzi
11th Mar 2018, 6:52 PM
Sukesh Kumar
What will be the output of the following my_dict = {} my_dict[1] = 1 my_dict['1'] = 2 my_dict[1.0] = 4 sum = 0 for k in my
tell
-3 głosów
3 odpowiedzi
28th Jan 2022, 7:49 AM
Sampada Sharma
>>> def even(X): ... if X % 2 == 0 : return True ... else: return False ... >>> filter(even, [0,1,2,3,4,5,6]) [0,2,4,6] How to get that output, help please...
python
0 głosów
3 odpowiedzi
14th Sep 2016, 11:07 PM
Vinh Le
can someone rewrite this as for loop? and A Do while loop also. int i = 0; int value = 0; while (i <=20){ if (i % 2 == 0 && i <= 10){ value = value + i * i; } else if (i % 2 == 0 && i > 10){ value = value - i; } else{ value = value - i; i = i + i; }
java
loops
0 głosów
3 odpowiedzi
29th Sep 2016, 1:32 AM
Nhyn Ojastro
Guys this fxn mst accept a char array, a 0 based start position and a length. It shud return a char array containn length chars.
errorcheck
1 Głos
1 Odpowiedź
8th Mar 2017, 2:33 PM
Ricardo Chitagu
Bit sequence
0
1
analyze
bit
c
computer
how
problem
program
sequence
0 głosów
6 odpowiedzi
24th Mar 2020, 8:56 PM
Computer_King20
l want to program code that compare two values x and y , return 1 if x is greater than y else return 0 if x is equal to y or else return -1 if x less than y . Then program must accept user input
function-arguments
python
0 głosów
6 odpowiedzi
13th Oct 2016, 8:20 AM
James T Togara
When we use multidimensional array , like int [][]= a {{c,b,b}{g,u,o}} Then is it array 0 and array 1 or array 1 and array 2?
arrays
java
0 głosów
1 Odpowiedź
10th Dec 2016, 4:22 PM
Sana Khanam
Should I think of indexing or offset (that starts from 0 rather than 1 in python) not as the number of the character itself, but
indexing
programming
python
0 głosów
1 Odpowiedź
10th Sep 2017, 3:55 PM
prantik chakraborty
can anyone tell me why when I put 0 the programm work when I put negatif number or greater than 10000 there is nothing happen
python3
0 głosów
1 Odpowiedź
24th Sep 2018, 5:33 AM
mbappe08
Given two lists of 1s and 0s (1 represents the true label, and 0 represents the false false) of the same length, output a 2darra
#sololearn
-2 głosów
1 Odpowiedź
18th Apr 2022, 12:49 PM
Shubham Mandgaonkar
total = 0 while True: # prompt the user to enter a number num = input("Enter a number (or type 'no more' to stop): ")
coding
important
logic
python
-1 Głos
1 Odpowiedź
26th Dec 2022, 1:15 PM
Udit pratap singh
Imagine you have an empty JavaScript array (list=[ ]), If you insert 3 in position 0, 9 in position 1, and then 6 in position 0
me
-2 głosów
2 odpowiedzi
20th Feb 2018, 3:34 PM
Austin DeGreat
Fill in the blanks to create a loop that increments the value of x by 2 and prints the even values. x = 0 x <=20
loops
python
-2 głosów
1 Odpowiedź
29th Apr 2020, 4:08 PM
Salman farooq
I can't understand, why do sin(x) and tan(x) return wrong values when I put Math.PI as x. It shows 1,22 for sin and -1,22 for tan, when it should be 0 in both cases?
javascript
math
1 Głos
3 odpowiedzi
24th Dec 2015, 12:51 AM
astar95
What happened i almost completed the course i only had one module remaining and now am at 0 but with my same achievements that said i was half way through i need a fix i can't believe this
javascript
2 głosów
4 odpowiedzi
2nd May 2017, 12:45 PM
Daniel Chin
Good night, as the formula for the table would be, is that it has to be as follows x = 0 + 0.2 and following x = 0.2 + 0.4
java
loops
0 głosów
2 odpowiedzi
10th May 2021, 12:41 AM
Astrid
Given the age of a person as an input, output their age group. Here are the age groups you need to handle: Child: 0 to 11 T
-3 głosów
1 Odpowiedź
31st Jan 2022, 7:16 AM
mahdi
Given the age of a person as an input, output their age group. Here are the age groups you need to handle: Child: 0 to 11 T
-7 głosów
1 Odpowiedź
31st Jan 2022, 7:16 AM
mahdi
Can someone explain how a destructor would work if I was to kill an enemy in a text-based game. Specifically the syntax I would use to make sure it was destructed once it's health reached 0
c++
classes
games
0 głosów
4 odpowiedzi
2nd Aug 2016, 12:04 AM
The Klespyrian
def max3bad(x,y,z): maximum = 0 if x >= y: if x >= z: maximum = x elif y >= z: maximum = y else: maximum = z return(maximum)
python
-1 Głos
1 Odpowiedź
19th Mar 2017, 4:40 AM
dhanush ajith
I don't get how num helps us find the find sum of user inputted numbers. please explain this code. Although I did notice that without it the output is always 0 no matter which number is inputted.
c++
loops
2 głosów
2 odpowiedzi
9th Aug 2016, 6:15 AM
Sundus Yawar
I tried following code try: num1 = 7 num2 = 0 print("Done calculation") print (num1 / num2) except ZeroDivisionError: print("An error occurred") print("due to zero division") It's throwing an error I don't understand why can someone explain me plz
exceptions
python
2 głosów
3 odpowiedzi
2nd Aug 2016, 12:02 AM
nikitha gireddy
how does this program work??? doesn't the break command break the loop prematurely, if that's the case there should be only 0 displayed as output followed by the print statement.
break
loops
python
0 głosów
2 odpowiedzi
9th Nov 2016, 2:58 AM
Clinton Moses
How to write a program using to switch print a from 0 to 49 and to print b from 50 to 64 and print c from 65 to 74 and ....
java
0 głosów
2 odpowiedzi
20th Feb 2017, 6:23 PM
Ali Zeawo
Adding boolean values C++
0
1
adding
boolean
c++
false
true
0 głosów
1 Odpowiedź
18th Mar 2017, 9:04 AM
Ben Lucy
Zadaj pytanie
Zadaj pytanie
Zadaj pytanie
Zadaj pytanie
< Do tyłu
1
...
16
17
18
Dalej >
Popularne dzisiaj
Can i get my old account back? I had deleted it :(
2 Votes
HTML
1 Votes
Formating in python
0 Votes
How to have a helper function in a class ,without getting a warning of (self expected as the first parameter )
1 Votes
Could you ple ase help me???
0 Votes
Header, Main, Footer
0 Votes
What's wrong here?
0 Votes
Who’s been using this app for 7+ years
0 Votes
Wifi Password
0 Votes
How to grow in sololearn
0 Votes