Courses
Courses
Code Compiler
Code Compiler
Discuss
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
Give me a Java code to check whether the number is even or odd but without using any if else or conditional statement.
code
codeplayground
java
0 Votes
2 Answers
22nd Dec 2016, 11:27 AM
Dhairya Agarwal
Can you help me explain abstract for java in the simplest way? Until the moment I don't understand it, even though I tried.
java
0 Votes
3 Answers
19th Jul 2018, 7:40 AM
Ibrahim Kadri
How to write a c program that will print all even numbers from 2 to x, user must input the max.value using for loop?
for
loops
0 Votes
4 Answers
9th Jan 2018, 12:03 PM
Mae Ann
Why does this not work?
challenge
even
help
odd
python
why
2 Votes
2 Answers
1st Feb 2018, 10:14 PM
Raphael Shay
This is rather a complain than a question, I have not been able to pass the second test given to me even with all other options
<><\>
0 Votes
3 Answers
23rd Aug 2019, 3:14 AM
Marvellous Ayomide
Please refer to the code below and explain me the following : 1. Why does only one value get printed even if we are using return
c++
function
function-return-type
return
type
0 Votes
4 Answers
26th Sep 2020, 8:04 AM
Garvita Bhateja
I get irritated most often when i see errors on my screen !! I don't even sleep until i clear errors but this is disgusting ..?
advice
code
debug
errors
expert
friend
program
3 Votes
3 Answers
8th Dec 2017, 5:43 AM
D.soundharya
Am trying to us php in my pc but it seems like nothing is happening even a hello world statement is not showing ..what to do
.
help
php
3 Votes
2 Answers
29th Dec 2020, 11:07 AM
KcK
Is there a way you can give output bevor asking for input? Our even better rotatory (output, input, output, input, output)?
input
java
1 Vote
2 Answers
24th Sep 2017, 2:30 PM
Selty
Write a program in java using an array to check if a set of numbers is even or odd. The user have to input the numbers in arrays
help
0 Votes
6 Answers
2nd Jun 2018, 3:50 AM
kama nick
how can i get 50% of horizontal line from left in output? why it is placed in center of the screen even there is no attribute in <hr width="50%" />?
attributes
html
6 Votes
4 Answers
25th Jul 2016, 7:07 PM
Dhana sri sowmya avidi
Write a function in C++ to add 8 in all odd values and 6 in all even values of the array a....
arrays
c++
functions
1 Vote
2 Answers
21st Mar 2018, 3:45 PM
Aditya Mishra
You are given a program that outputs all the numbers from 0 to 10. Change the code to make it output only the even numbers.
wrong
0 Votes
2 Answers
3rd Mar 2022, 9:48 AM
P Bharath
My code is still not showing the colorsi added to it even after trying it in notepad++ why๐ซ. Please some one help me
html
html5
0 Votes
2 Answers
23rd May 2019, 9:29 AM
Brown Shuga
such an unfair challenge system lol challenged 5 guys to a quiz and 36 not 24 hours the quiz expired and i didnt even get xp
sololearn
0 Votes
3 Answers
12th Apr 2019, 7:14 PM
Alex Bogorad
I really don't understand this "Object" stuff in java script. I don't even know how to use it please is there any better explana
javascript
0 Votes
2 Answers
12th Jan 2020, 8:30 PM
Precious Boy
Make a program in which If the no. Is even then divide by 3 and when the no is odd then multiply by 7
c++
program
0 Votes
4 Answers
23rd Jun 2017, 3:02 PM
Sakshi Gupta
After you put the condition, why do people open up these curly brackets { } If u don't have to even put it..?
else-statements
if-statements
2 Votes
2 Answers
17th Dec 2017, 2:02 PM
Eli Bitton
Does 'continue' only work with the for loop or does it work with other loops or even without loops?
java
loops
0 Votes
1 Answer
31st Jul 2016, 9:42 PM
cocoacheescakemuffin
Some people say that minecraft is coded only with bedrock and it can even play on computer.Is that true?
bedrock
minecraft
mojang
-4 Votes
2 Answers
31st Jul 2021, 8:50 AM
Nyan Swan Saung
Why does the console keep on showing error on line 7 when there isn't even any code in it. BTW, this piece is like my rough work
console
error
js
0 Votes
4 Answers
7th Aug 2020, 9:20 PM
Iloka Nadia
If u get a input from.user for example 4 and want to generate a loop of even numbers if u generate numbers like 2,4,6,8 then how
2
a
example
from
get
if
input
u
user
1 Vote
3 Answers
10th Jun 2018, 12:58 PM
Hassan Abbas
My boss is set on using Ms SQL server with PHP. Should a hybrid like this even be considered for production?
dblib
microsoft
mysql
odbc
php
sqlserver
1 Vote
1 Answer
9th Mar 2019, 11:00 AM
Dave S
Guys any help how and where to make legal money online with as a programmer or IT literate?
even
help
info
me
with
0 Votes
1 Answer
9th Dec 2016, 10:25 PM
sidiq
In this program; when i have set the capacity to 20 and tried to print that it is even printing the same as initial .why?
java
strings
1 Vote
2 Answers
14th May 2018, 1:19 PM
himani
Pls why is the audio in this code taking time to play even after I used onload function it still stops at some part
css
html
javascript
0 Votes
2 Answers
23rd Jul 2022, 11:52 AM
Coder X
Is learning more languages necessary even though you know what you want to do or just focus on single language?
career
guidance
0 Votes
2 Answers
16th Aug 2017, 12:21 PM
Ankur Gokhale
multidimensional array / why does it says "array doesnt have that many of arrays inside it" even though it is 0 index based
c
c#
csharp
1 Vote
1 Answer
6th Jun 2022, 3:58 AM
Mohammad _io_
Why is it so easy to learn Python but when it comes to writing code you encounter errors you didn't even know existed.
python3
0 Votes
2 Answers
12th Aug 2019, 9:42 AM
Lewis Muriungi
Css transparent sections in an image and i need a div behind it that is locked into place even by responsive layout?!
css3
html5
positioning
1 Vote
1 Answer
29th Aug 2019, 5:07 PM
Rawad Abdul Salam
Even if I don't add a 'return' statement, the program still runs and gives same output. Can anyone pl explain the difference?
return
1 Vote
2 Answers
2nd Nov 2016, 7:37 AM
Samyak
In C++ I want to take input 1 for even number output and input 2 for odd number output. How I limit input to user.
cin
cout
for
int
while
0 Votes
4 Answers
31st May 2017, 5:23 PM
Umair
Which python IDE that I can download from my phone later on send it to my laptop windows 7 and 32 bit ? Or even link.
python
2 Votes
2 Answers
19th Sep 2020, 2:27 PM
Muhammad Abdulmalik
How much time should be spent on trying, if we couldn't able to build a logic for a cp question, even after understanding theme.
@helpforbegginer
0 Votes
2 Answers
6th Mar 2021, 2:26 PM
sanju bhargav
How can I get the sum of items in a list after removing even numbers by an iteration.Someone to help๐ Here is my code
python
0 Votes
2 Answers
23rd Feb 2021, 4:47 AM
Emmanuel Kipngeno cheruiyot
sorry guys i have not coded in for ever ill like to know wat is the tag in html to change font color possible even the size
html
0 Votes
3 Answers
22nd May 2020, 10:02 PM
Nathaniel Shipman
Please am new and i basically know nothing even the explanations giving to me are too hard ao can someone just explain to me how
c++
1 Vote
2 Answers
4th Jan 2019, 11:12 AM
Agbor Ryan
Why do we use ' *' in function declaration when we are returning array from a function even if the array points to first element
arrays
c
pointers
0 Votes
2 Answers
18th Aug 2020, 12:20 PM
Ankush Kurmi
Hi! I'm a newbie here, just wanna ask about what does this sign "%" do in these codes, def even (x) if x % 2 == 0: ?
functions
python
1 Vote
5 Answers
31st Mar 2017, 1:20 AM
Arvin Orpilla
What is the significance of c++, even compared to innumerable other computer languages, why is it so widely used and if new programming languages are created, why are the older ones used (like c++98)
c++
lambdas
1 Vote
9 Answers
22nd Jul 2016, 7:14 PM
Aishwary Chauhan
what is the python code to create a list of even numbers b/w 100 and 200 using range function and dispaly it using while and for loop
python
range
-1 Vote
5 Answers
7th Nov 2016, 3:40 PM
Anju kv
Don't you guys think that it would have been great had we had a chance even to text the friends we meet here?
display
0 Votes
3 Answers
20th Mar 2017, 11:12 AM
Biraj Adhikari
Why we write as 'return 0' at the end of the code? Even though I write as return 1 or return 100 or return 1000 it gets executed
c++
2 Votes
4 Answers
13th Oct 2017, 4:18 PM
Manikanta
For some reasons border-style: hidden; don't work with me it is like no border at all even i make border-width 100px
border
css
0 Votes
1 Answer
25th Mar 2020, 1:14 AM
aya sahloul
Can anyone help me ,,,,,,, ,,how I can combine Java and python at a single program ,,,,,,,,,,,,,,,or is it even possible
please
0 Votes
1 Answer
12th Aug 2020, 3:30 AM
Sumit Sinha
How to add graphic interface to a java program(game)?
even
game
graphic
interface
java
odd
user
1 Vote
3 Answers
10th Dec 2017, 4:27 AM
abhrodeep chanda
Can i get out of a computer science class in high school as a freshman, even though its second quarter?
*blowmybrainsout*
help
helpme
iwannadie
kms
letmeoutofmyysery
please
python
sad
smh
-3 Votes
3 Answers
14th Nov 2017, 8:54 PM
Nicole Albright
I need a function that counts odds and even numbers in a list. This is what I have so far
python
0 Votes
1 Answer
1st Oct 2017, 7:23 AM
Reginald Wright
Why does SoloLearn suggest users to be friends with other users even though they only give the option to "Follow"?
follow
friends
sololearn
0 Votes
1 Answer
6th Dec 2017, 1:15 PM
1604064_Sharif
How can I write a c++ program to print the summation of even digit for any read number in the keyboard ??
linkedlist
0 Votes
2 Answers
18th Mar 2017, 7:25 PM
Khitam Aloudat
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
22
23
24
25
Next >
Hot today
Honestly i just want to understand how python works
2 Votes
Is there any free coding app?
1 Votes
Not getting Badge issue
1 Votes
Slicing in py
0 Votes
Notes app bug
1 Votes
Is Completing C++1 Enough for My Goals?
2 Votes
Cube Roots
1 Votes
Association rule mining
1 Votes
BASIC
0 Votes
how to become a mentor
2 Votes