Cours
Se connecter
Commencer à apprendre l'IA
Cours
Se connecter
Commencer à apprendre l'IA
Discussions Q&R
Chercher
Chercher
Poser une question
Poser une question
2 kingdom are at war.kingdom 1 has N soldiers (no. As 1 to N) & war goes on for K days.each day only 1 solider can be select.
algorithm
are
at
c++
difficult
has
java
kingdoms
two
war
3 Votes
3 Réponses
8th Mar 2017, 9:47 AM
priyanshi srivastava
why doesn't making line 4 " if i == 2 or 3:" cause the output to be 1 skipping 2 skipping 2 4 ... ?
loops
python
0 Vote
3 Réponses
17th Aug 2016, 2:11 AM
Coleman Alexander
Why does my code give 2 outputs when it's supposed to be only 1 output
python
0 Vote
4 Réponses
9th Jun 2021, 2:30 PM
Da GD Bot
why number 1 works as I need? why number 2 can't produce my desired result?
dropdown
javascript
menu
0 Vote
6 Réponses
14th Jul 2018, 8:55 AM
Nayem
[SOLVED] How do I turn two variables like 1 and 2 into one variable 12.
concat
concatenation
int
solved
string
web
0 Vote
4 Réponses
29th Jul 2020, 7:20 PM
bob
Checking why the output of a Java Switch statement is 2 lines instead of 1
java
switch-statement-out-of-order
1 Vote
4 Réponses
26th Aug 2022, 2:43 PM
Iulia
How much javascript is enough?for a beginner 1 to 2 years experinced coder
code
javascript
0 Vote
1 Réponse
24th Nov 2020, 4:34 PM
rawaha. pool
Fill in the blank with the output of this code. >>> 1 + 2 + 3 + 4.0 + 5
python
-10 Votes
20 Réponses
7th Jan 2020, 10:34 PM
Excellence David Prezinaantok
Porque se le dan esos valores a value. De 1 y 2 en checkbox?
forms
0 Vote
3 Réponses
4th Dec 2018, 12:04 PM
Emmanuel PM
int x = 3; while(x > 0) { System.out.println(x); x--; } /* Outputs 3 2 1 */
loops
1 Vote
2 Réponses
6th Aug 2018, 11:49 AM
Saurabh Negi
Сколько раз надо повторить материал, чтобы полностью выучить Python?
1
2
3
5
2 Votes
5 Réponses
26th Jun 2019, 7:10 PM
Phil
please help, 2 test case need to be true while 1 test case need to be false
codeproblem
phyton
1 Vote
4 Réponses
16th Sep 2023, 12:45 AM
Bayu Setiawan
I think mine is Ok, the results are 2 1 and game over. Why is this still wrong?
python
python3
0 Vote
8 Réponses
11th Feb 2021, 7:40 AM
Ratna13
why 737 is printed so many times ?input=2 2 a g 1 737 586
method
overloading
0 Vote
2 Réponses
9th May 2018, 6:27 AM
Bahubali
In python I write . Line 1 answer(2) line 2 while answer(2) and then how can i do that it comes 'true'
python
-3 Votes
22 Réponses
5th Jul 2020, 2:48 PM
Kir-Py
Which one is better start to learn Angular 1 or Angular 2 ?
javascript
0 Vote
2 Réponses
1st May 2017, 3:25 AM
Roshan Bagde
What is the difference between the 2 syntax of code. Wich one is correct 1 or 2.
c
linkedlist
logic
syntax
0 Vote
7 Réponses
27th Sep 2020, 3:34 PM
Amal Gil
Y si quiero poner el 1 o el 2 de la segunda lista?
lists
python
1 Vote
1 Réponse
24th Nov 2016, 12:27 PM
Fydo Dido
Warning: mysqli_query() expects at least 2 parameters, 1 given in C:\wamp64\www\project\plusweb\pluspro_admin\config.php on line
2
at
expects
least
mysqli_query()
0 Vote
1 Réponse
17th May 2020, 10:41 PM
Plusproy yousaf
Why we use return 0 not return 1 or return 2 or any thing else?
c++
0 Vote
2 Réponses
27th Jun 2018, 4:18 PM
Parul Kashyap
Why x value 1 is used even though we have static x value as 2 in this code?
java
5 Votes
4 Réponses
13th Mar 2022, 7:36 AM
alagammai uma
Which one is better for learning programming 1 pdf(programming books) 2 video tutorials 3 solo learn
c++
java
javascript
php
3 Votes
4 Réponses
18th Jul 2017, 2:04 PM
Million Gashawbeza
x -= 1; // 2 x /= 2; // 3 x %= 2; // 1
operators
0 Vote
2 Réponses
16th Nov 2018, 6:22 PM
Esra Gül Anlar
I cant understand this....> 1 != 1 False >>> "eleven" != "seven" True >>> 2 != 10 True.... with true of false
python3
1 Vote
2 Réponses
31st Jan 2018, 8:44 PM
Reptilian Hermit
i need one java program This pattern 1 5 8 10 2 6 9 3 7 4
java
patttern
quick
solution
talent
1 Vote
5 Réponses
14th May 2018, 1:55 AM
Sripragathiswar
can anyone tell me why the code below named 1 java 1 is not working properly... while the code named java 2 is working fine??
beginners
iostream
java
1 Vote
5 Réponses
10th Dec 2017, 3:39 PM
SubbaReddy G
how can i write 1 times 1, 2 times 2 , 3 times 3 in page with for loop? for example (1223334444)
c#
c++
1 Vote
2 Réponses
8th Sep 2017, 8:48 AM
Oğuz Güven
Please check this program,i only get 2 as output . question is to find prime numbers 1 to 100
1
100
c
for
prime
programming
to
1 Vote
8 Réponses
27th Nov 2019, 12:40 PM
Raikamal Mukherjee
1 point for 2 run scored- what's the condition and loop will applied in this. See the code. Is this true?
code
loops
print
python3
runtime
3 Votes
14 Réponses
30th Jan 2020, 3:34 PM
Utsav Singh
When put 2 lines it only draw 1 circle , but works only in two different svg tags, why?
html5
svg
14 Votes
2 Réponses
22nd Dec 2017, 6:22 AM
Nilavarasan
What is the output of this program if the input: 1 2 3 4 -5 0 26?
java
0 Vote
4 Réponses
21st Feb 2020, 1:45 AM
JOHANNA POLOABAD
Def a function and pass 2 lists.. Print true if both the list have at least 1 common element?
phython
2 Votes
6 Réponses
26th Nov 2020, 8:42 AM
Mohammad Shireen
d = {k:v for k, v in ('a1', 'b2')} d['a1'] = 1 d['b2'] = 2 print(d) print(len(d))
confused
doubt
python
0 Vote
2 Réponses
28th Aug 2021, 2:34 PM
Akash Yadav
How To Put a Trap Invalid Selection That limits Choices from 1 to 2
java
0 Vote
1 Réponse
26th Nov 2018, 1:44 PM
Lorenze Saledain
there are eclipse mars 1 and mars 2 are available. which one should choose?
eclipse
java
0 Vote
1 Réponse
31st Dec 2016, 12:06 PM
Mohit Jadhav
I am looking for a function that find A numbers in B range that sum to C Ex: B =5 A =3 C= 8 Output: 1 2 5 1 3 4
c++
python
python3
1 Vote
8 Réponses
1st May 2021, 1:45 AM
Emad
Program that print 2 to the power of N when N goes from 1 to 100.
python3
2 Votes
2 Réponses
8th Jun 2017, 3:44 PM
Talia Pacelli
When the programing is 1==(1 or 2) the output is true. But instead of 1 i gave 0, and 2 i gave 1 the output is false. Explain.
operator-precedence
python3
scripting-languages
2 Votes
3 Réponses
2nd Sep 2019, 3:42 PM
HEMANT KRISHNAN
Using return 0 or 1 or 2 to close main function giving same result why?
c++
2 Votes
1 Réponse
27th Oct 2017, 2:48 AM
Shubham Sharma
What is wrong with this code please:n = 100 i = 1 while i <= n: if i % 2 == 0: continue print(i) i+=1
christian
huml
2 Votes
15 Réponses
13th Mar 2022, 1:56 PM
Lean R1
Write a python program to compute the sum 1 − 2 + 3 − 4 + ··· + 1999 − 2000.
loops
range
1 Vote
7 Réponses
4th Jun 2022, 6:00 PM
agboola zainab
I need help again pls. Switch Statement 1 -1stYear 2 -2ndYear 3 -3rdYear 4 -4thYear ----- Example: Enter Num:2 2ndYear
c++
1 Vote
11 Réponses
10th Mar 2019, 11:43 PM
Rhea May Abay
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 Réponses
3rd May 2020, 6:21 AM
Deysi Lucero Puscan Remon
C language pattern solving 1 2 0 2 3 0 0 0 3 4 0 0 0 0 0 4 5 0 0 0 0 0 0 0 5
modification
needed
0 Vote
5 Réponses
8th Jul 2020, 8:50 AM
Suman Singh
I had posted this question earlier and now only 1 answer out of 2 is appearing. Why?
answers
invisble
posts
sololearn
1 Vote
2 Réponses
7th Nov 2018, 10:34 AM
B.D
Why we used return 0 in c we can't use return 1 or return 2 or return 3
no
0 Vote
3 Réponses
2nd Jul 2019, 10:06 AM
Vemana Srinivasulu
how to code for g.c.d of 2 numbers? like g.c.d of 12 and 67 is 1
python
tuples
1 Vote
2 Réponses
20th Sep 2016, 10:16 AM
AKHILESH VVN
How to learn full stack web development in a short time? 1 or 2 months
application
full-stack
website
0 Vote
1 Réponse
9th Jul 2019, 6:25 AM
Vikneshwara R B
how to count number of 1's in column 1 and column 2 in a single row
sql
1 Vote
2 Réponses
24th Oct 2016, 7:41 PM
yamnoor hiragannawar
How to create 1 2 4 7 11 16 22 ...... <=100 pattern in python only using while repetition
loops
python
while
0 Vote
3 Réponses
15th Jun 2022, 1:56 PM
NINJA YT
Poser une question
Poser une question
Poser une question
Poser une question
< Précédent
1
2
3
4
...
6
Suivant >
Aujourd'hui en vedette
Which is easier to learn first between python and JS?
0 Votes
API
0 Votes
Does sololearn teaches on how to create games
0 Votes
Sockets, etc
0 Votes
Quiz
0 Votes
I HAVE A PROBLEM I CANNOT ABLE TO SEND MESSAGE ANYONE AND ALSO MY MESSAGE SECTION NOT AVAILABLE "PLEASE ACTIVATE YOUR ACCOUNT
0 Votes
Necesitó ayuda
1 Votes
Any Sololearn Chat Groups that I could Join?
0 Votes
Controls issue
0 Votes
Excuse me, why do they always ask us to input without telling us what it is for in python.
1 Votes