Cours
Cours
Compilateur de code
Compilateur de code
Discuter
Tarification
Équipes
Se connecter
S'inscrire
Menu
Discussions Q&R
Chercher
Chercher
Poser une question
Poser une question
I can use some help on the even or odd practice. How does one declare an even to compare a random number to?
c++
else-statements
1 Vote
5 Réponses
14th Feb 2021, 8:20 AM
Michelle Davis
Pls, why does this code print only odd numbers in the range? And if I chnge the "if" to (x = x) it prints the full range
java
2 Votes
7 Réponses
11th Dec 2019, 6:54 AM
ISOSIYA WARMATE
Write a python program which will ask user to enter positive integer. Your program will output a message that indicates if this number is an even or odd number for example- if user enter 5 your program can output a message like"number 5 is an odd number"
python
1 Vote
4 Réponses
28th Jan 2017, 2:36 AM
Parita Shah
How can an array be used to add all odd numbers in a certain range of numbers eg from 1-100
c
java
3 Votes
3 Réponses
19th Feb 2017, 6:16 AM
Bukuru Henry
Write a program in java to generate a Spiral Matrix of order n*n, where n must be an odd number.
java
0 Vote
1 Réponse
13th Jun 2019, 10:43 AM
MANAS RASTOGI
Given a list of integers (1-10). Write a code to calculate and display the sum of all odd numbers.(using loop)
loop
python
0 Vote
4 Réponses
3rd Oct 2018, 2:01 PM
partha
Write a program in C to display the n terms of odd natural number and their sum . Using while loop
c
0 Vote
4 Réponses
16th Feb 2021, 2:21 AM
Rey Cardama
fill in the blanks to find out whether the value of "a" is an odd number or even number
c++
0 Vote
4 Réponses
12th Sep 2016, 3:13 PM
rohtan singh
anyone help with c++ programing for odd and even number where the program prompts the user to enter a guess and report the guess
c++
0 Vote
5 Réponses
5th May 2022, 9:26 PM
GIVEN NICOL
Anyone help with how to write a c language that generates odd numbers from 250 to 850 using the for statement.
c
-2 Votes
4 Réponses
5th Dec 2020, 8:36 AM
Khalid Zak
How can write a program to count total even and odd numbers in any 10 numbers .
c
0 Vote
2 Réponses
7th Nov 2017, 6:20 PM
HighFlyer
How to check the square number in net beans? I wanna check that number also odd number. Any method?
ny
0 Vote
2 Réponses
22nd Dec 2019, 5:25 AM
Rakshika Radhakrishnan
Input a list, sort it using bubble sort and print the sorted even elements before the sorted odd elements in a single list.
bubblesort
python3
2 Votes
4 Réponses
26th Nov 2019, 3:34 AM
Azmat
what is output of this code ? //code for sum of first 10 odd numbers using //for loop .. verify and it is correct or //incorr
java
2 Votes
11 Réponses
17th Dec 2016, 2:43 PM
Alaghusooriya EM
Find a number the number which is entered by the user is even or odd without using modules (%) operator?
c++
2 Votes
3 Réponses
10th Nov 2016, 6:13 AM
DEATH WALKER
Can someone help me out?
even
java
odd
0 Vote
1 Réponse
9th Mar 2020, 6:26 AM
Ashutosh Mulky
How do i write a function that accepts a tuple of numbers and return a tuple with odd numbers squared? Eg ((1,2,3)) becomes
python
0 Vote
4 Réponses
12th Mar 2020, 4:51 PM
Tan
What is wrong with my code?
and
even
java
numbers
odd
0 Vote
7 Réponses
2nd Oct 2021, 8:00 AM
Bobby Dike
Create a C++ program that contains two functions namely odd and even. The functions will determine if the entered number is od
none
-1 Vote
4 Réponses
2nd Dec 2021, 12:32 PM
SHABUTOYS
How do I write a c++ program to output all even numbers, all odd numbers and all prime numbers within a given range?
c++
1 Vote
4 Réponses
23rd Apr 2018, 6:41 PM
STT
Make a program to accept a[10] and another array b[10] which have odd values first followed by even values.
c++
0 Vote
3 Réponses
17th Nov 2016, 4:49 PM
rashmi bansal
Write a program to sort elements in the array with odd index number in ascending order and elements with even index number in
c
2 Votes
2 Réponses
2nd Dec 2022, 4:42 PM
Ashwanth
Input a list of numbers and swap elements at the even location with the elements at the odd location.please tell any other appro
python
python3
1 Vote
3 Réponses
30th Jan 2022, 5:12 PM
Aditya Pradhan
Anyone know's how to sort odd and even number with array in c language ? If you know please show me how to do it
c
1 Vote
5 Réponses
8th Nov 2019, 4:14 AM
Susetyoadhi
who can write a c++ program that reads an integer and determines and prints whether it is odd or even.
c++
1 Vote
3 Réponses
13th Jan 2017, 1:52 PM
Abdulla Muhamad
I am working on a code to calulate difference between sum of odd and even levels of a BST. Here I have used a statement s = s2;
c
stack
struct
0 Vote
13 Réponses
1st Dec 2017, 3:41 AM
Ashutosh
Code Coach Even Numbers Bug?
bug
codecoach
even
odd
python
1 Vote
3 Réponses
27th Jul 2020, 12:25 PM
Brave Tea
How to create this program??
even
java
odd
or
0 Vote
5 Réponses
8th Apr 2017, 9:55 AM
Dexter Torres Gregorio
Make a program in C++ of even number from 50 to 0 and odd number from 49 to 1
c++
-1 Vote
2 Réponses
3rd Dec 2021, 4:29 AM
Abdul Basit Khan
What is the c program to check number Is even or odd or a letter(like a,A,s etc) or a fractional number(2.23)
kamble
kunal
-3 Votes
4 Réponses
15th Oct 2020, 3:13 PM
Kunal Kamble
My solution to "That's odd" doesn't work, and I dont'understand why. The #4 case remains always wrong.[SOLVED]
c++
help
odd
that'sodd
0 Vote
2 Réponses
5th Apr 2020, 10:27 PM
Federico Di Stefano
Help me to solve this
even
help
odd
python
1 Vote
2 Réponses
15th Aug 2021, 11:13 AM
Aakash Mitra
Given an array of positive even and odd numbers. We have to find the index of largest even number. Use that maximum even number
array
c
c++
devleper
help_me
java
java_program
solve
1 Vote
3 Réponses
15th Nov 2018, 3:36 PM
Abrar Bandar
Write a program in c to enter 20 number in an array. Determine the sum of odd numbers and even numbers separately
c
0 Vote
4 Réponses
12th Feb 2017, 2:04 PM
ankit pariyar
How do I write a code that accepts a number from the user and determin weather its even or odd in java
java
-1 Vote
3 Réponses
20th Oct 2021, 9:50 AM
Caesar Kent
I think my logic here is ok but it's going into infinite loop why?
bugs
c_program
c,
odd
odd_number
2 Votes
3 Réponses
21st Jul 2023, 9:18 AM
Abdullah Al Zunaid
How do I solve this? Please help
loops
numbers
odd
python3
sum
0 Vote
4 Réponses
7th Oct 2019, 5:12 PM
Sundram Raj
C program that reads from the keyboard on character and displays on the screen: the number of digits odd using do while
c
program
programming
0 Vote
2 Réponses
25th Nov 2021, 11:20 AM
Țurcan Petru
Write a c++ program that add n even numbers and multiply n odd numbers from a given positive integers?
c++
0 Vote
2 Réponses
8th Jan 2017, 3:51 PM
Temesgen
The following code examine three variables -- x, y, and z -- and prints the largest odd number among them. If none of them is o
python3
0 Vote
5 Réponses
29th Sep 2020, 10:40 PM
Ali Rezaei
All the even elements of the integer array K (n) are placed in the array L (n), and the odd ones in the array M (n). Calculate t
arrays
c++
1 Vote
9 Réponses
2nd Nov 2017, 2:04 PM
Красавчик Том
[SOLVED] Please, could you explain where my problem is? Thanks for help.
array
input
java
loop
odd
sum
1 Vote
6 Réponses
19th Sep 2021, 3:31 PM
mesarthim
Yeah Hi. Can someone help me with the Fizzbuzz question where you have to input odd numbers to get an output ranging from 1to15
python
0 Vote
3 Réponses
23rd Jun 2022, 1:50 AM
Ananthakrishnan
You are given an array of size N. You want to maximize the sum of elements on the odd indices of array
array
0 Vote
2 Réponses
28th Jan 2022, 6:10 AM
Pawan
How is the rounding code ?2.553 to 2.6 if the second decimal number is 5 and the first decimal number is an odd number, and ...
website
1 Vote
3 Réponses
24th Jul 2022, 9:33 AM
Zulpakar
Array a[1,3,2,6,5,4,8,9,0] 1)Find the even numbers on the about array 2)Find the odd number position on the above array
php
1 Vote
1 Réponse
5th Oct 2016, 8:11 AM
Vengateshwaran Sivakumar
[SOME HELP PLEASE] required any no. with odd no. of digit such as 199 or 19999 returned the same
c
c++
0 Vote
2 Réponses
29th Jun 2016, 9:24 AM
Infinity
A program that takes as input a single line of text and display whether there are an odd or even number of dashes. In python
programming
-4 Votes
6 Réponses
21st May 2021, 7:19 PM
Motlatso Windy
sort an array
array
ascending
descending
even
odd
sort
2 Votes
6 Réponses
6th Feb 2020, 4:47 PM
George Listru
Write a python that asks the user to enter ten numbers then display the total and the average of only odd number among those ten
python3
-4 Votes
4 Réponses
28th Jul 2020, 7:46 PM
Suraiya Binte Akbar(Aaisha)
Poser une question
Poser une question
Poser une question
Poser une question
< Précédent
1
...
6
7
8
Suivant >
Aujourd'hui en vedette
Does anyone have the solution for this challenge?
2 Votes
How would you solve the part of the C# Intermediate code project that requires operator overloading?
0 Votes
I am beginner,This is will be right code?
1 Votes
Kernel in Jupyter
2 Votes
Solved# Survey data format in coding for data
1 Votes
How many days will It takes to completely learn front end
4 Votes
SQL
2 Votes
Why is it so hard to get a job as a junior dev? Or just wanting to do an internship.
1 Votes
Solution to solving this bugged problem
2 Votes
JAVA PROGRAMMING
1 Votes