Cours
Cours
Compilateur de code
Compilateur de code
Discuter
Équipes
Se connecter
S'inscrire
Menu
Discussions Q&R
Chercher
Chercher
Poser une question
Poser une question
Why must num and array be initialized in parentheses?
dsa
fibonacci
javascript
recursion
0 Vote
1 Réponse
28th Aug 2022, 3:33 PM
steve Purpose
Fill in the blanks to declare an integer variable num and assign it the value 42.
c
0 Vote
20 Réponses
26th Jan 2021, 9:52 AM
Hazel Flores
How to fix this error so that num = [1,3,4] ?
python3
3 Votes
6 Réponses
28th Aug 2020, 8:48 AM
Rajan K
A program to find any 11 num in a given array
code
python
-2 Votes
3 Réponses
10th Jun 2021, 10:42 AM
Sonam Bharti
nums = [1, 22, 35, -21, 45, 16, 18] for num in nums: if num % 2 == 0: continue print(num)
code
modules
numeric-operations
python
python3
0 Vote
1 Réponse
26th Jun 2021, 12:37 PM
Md Nazim Uddin Sagor
Why infinite loop gets created when num is decremented after continue statement?
loop
2 Votes
2 Réponses
14th Jan 2019, 12:44 PM
Amit Joshi
while True: num = input('Enter age for all users separated by a comma: ') n = num.split(',') print(n) if len(n)
r
0 Vote
2 Réponses
9th Mar 2021, 5:05 PM
Ojukwu Franklin Ifeanyi
for num in range(10,20): for i in range(2,num):
python
0 Vote
1 Réponse
15th Feb 2019, 5:13 AM
Jasmine
I can't even test whether num is prime!
c++
despair
ununderstandable
0 Vote
2 Réponses
14th May 2017, 8:17 PM
Superior
No sé si alguien hablará español por aquí pero cuándo tengo estas líneas de aquí, num = 12 if num > 5:
if-statements
0 Vote
3 Réponses
26th Jun 2020, 9:31 PM
Kevin Suárez
How to check whether a num is prime or not
c++
0 Vote
5 Réponses
1st Sep 2016, 4:27 PM
jasmine
#include <iostream> using namespace std; int main() { int num = 1; while (num < 7) { cout << "Number: " << num
sa
0 Vote
3 Réponses
23rd May 2019, 5:22 AM
alif sadam
how to get a random num in Swift
swift
0 Vote
1 Réponse
5th Aug 2020, 6:08 PM
CodyBoy
Как получить массив из слов равных числу num
functions
-2 Votes
1 Réponse
26th May 2022, 5:33 AM
Mobi Boom
in the following why the code num=num+1;can't be applied just after while loop in the beginning of curly braces? #include <iostream> using namespace std; int main() { int num = 1; while (num < 6) { cout << "Number: " << num << endl; num = num + 1; } return 0; }
c++
loops
0 Vote
7 Réponses
22nd Sep 2016, 2:48 PM
Prabhat Chandra Dwivedi
Python Maths Quiz - how to make sure random Num 1 is larger than Num 2 & number of loops = user input
maths
python
quiz
1 Vote
2 Réponses
9th Nov 2019, 5:11 PM
SWL
public class MyClass { public static void main(String[ ] args) { int num = 5; addOneTo(num); System.out.println(num); } static int addOneTo(int num) { num = num + 1; return num; } }
java
0 Vote
2 Réponses
11th Sep 2016, 8:11 AM
Nikhil Mittal
Please, explain why num 1 = num also, why m = m *10 + num%10 and num/=10 ? See below program
java
0 Vote
2 Réponses
9th Dec 2016, 1:59 PM
Varun Singh
How let the users just answer a num input in python
input
python
user
2 Votes
2 Réponses
1st Aug 2018, 6:39 PM
Brayan Wilis
Wouldn't it be more efficient to write while(num<5){ cout << "The number is" << num << endl; num = num + 1; } as while(num<5){ cout << "The number is" << num++ << endl; }
c++
loops
1 Vote
2 Réponses
15th Aug 2016, 7:20 PM
Clayton Summers
Int num ; cin>>num what it means in c++
c++
variables
-5 Votes
4 Réponses
25th Sep 2017, 8:26 PM
Gaurav kumar
>>> x = 3 >>> num = 17 >>> print(num%x)
numeric-operations
python
0 Vote
2 Réponses
15th Nov 2016, 4:49 AM
Darshen Nithiyanandnan
I need help, how to round a decimal num to 5 and 3 digits in c#. The users will write a decimal num
c#
input
1 Vote
2 Réponses
3rd Nov 2017, 1:26 AM
Shadi Ghazi
How I can increase num 80 every time the loop is running?
increment
javascript
loops
1 Vote
4 Réponses
19th Jul 2018, 5:48 AM
Nayem
For num in range (0,10,-2): print (num,end=' ') .why no output for this one and for this one also for num in range (10,0,2)
cpython
python
0 Vote
1 Réponse
18th Jan 2023, 9:30 AM
janvi vashistha
why isnt the output 6? or would it have print num and not x?
java
question
0 Vote
9 Réponses
16th Sep 2019, 3:28 AM
Andrew DeRiemacker
Write a java program for count a num of variables in a string.
java
0 Vote
8 Réponses
28th Jul 2016, 7:00 AM
honey
def convert(num): if num == 0: return 0 else: return (num % 2 + 10 * convert(num // 2))
python
recursion
5 Votes
13 Réponses
3rd Sep 2022, 6:01 PM
Mohammad Faiz
In web , how to input any num the user want ? ..
html
notepad
sololearn
4 Votes
3 Réponses
10th Jun 2018, 8:16 AM
Deesha Devi Raghu
WAP in C++ to add two num without using + addition sign
c++
0 Vote
3 Réponses
19th Jan 2022, 4:11 PM
Mohammad Jawwad
try: num = 5 / 0 except: print("An error occurred") raise
exceptions
python
0 Vote
3 Réponses
24th Apr 2017, 4:24 AM
arun kumar
Fill in the blanks to declare an integer variable num and assign it the value 42.
c
-2 Votes
5 Réponses
10th Feb 2021, 9:21 AM
GORA GOWRISHANKARVARAPRASAD
Can someone look at my coding bits number thats name num 6
help
need
0 Vote
3 Réponses
19th May 2020, 3:31 PM
Shannie
Two for loops that reads all num in x rows and y columns
python
0 Vote
2 Réponses
8th Jun 2019, 5:57 PM
Marpari
int num = 1; while(num<=20){ if (num % 3 == 0){ cout<<num<<endl; } num+=1; }
while
0 Vote
4 Réponses
7th Aug 2022, 8:21 AM
Erkaboev Ilhom Isomjonovich
Java help: how to choose by num specific items you want to see from array.
array
help
java
string
strings
0 Vote
6 Réponses
11th Nov 2018, 5:41 PM
mya
How do we access int num from another structure by just writing (recs+k) - >num=k;?
calloc
malloc
realloc
0 Vote
4 Réponses
9th Apr 2019, 4:10 AM
Suhani Goyal
Anybody tell me how to num JavaScript in vscode. I mean which extension is used.
javascript
0 Vote
4 Réponses
30th Jan 2022, 4:33 PM
Amazing Hub
input_list =[33,15,27,8,35,42,19,48] def selection_sort (input_list): size = len (input_list) for num in range (0,size-
help
plz
1 Vote
2 Réponses
6th Feb 2022, 11:33 AM
Akshaya Isaac
Cprogram-add all num using recursion:67=6+7=output=1+3=4. The code output is correct!! this recursion method is correct or not??
c
1 Vote
6 Réponses
20th May 2020, 7:33 PM
T.Jansi Rani
Help with c++ code
c++
codeplayground
num
perfect
1 Vote
7 Réponses
8th May 2024, 1:02 PM
P <Code>
List Operations You are given a list of items. Write a program that takes a num number as input, reassigns the element with th
pythoncore
0 Vote
3 Réponses
3rd May 2021, 4:14 AM
Aryan kumar
what's wrong? , can't get it, something missing, i am a beginner
input
num
python3
1 Vote
5 Réponses
27th Aug 2017, 3:21 PM
5p4c353c
Var = 42 num // kind of nuts but getting hang of it ...
variables
0 Vote
1 Réponse
28th Mar 2018, 10:48 PM
Beayond Jay Blackwell
Given two num a and b write a program using function to print all odd numbers
c++
functions
0 Vote
2 Réponses
1st Aug 2023, 11:12 AM
Anuj Khare
Num = [10, 11, [ 100, 200, [ 1, 2, 3]], 120]. Num[2][2][1] = 500
lists
python
0 Vote
4 Réponses
23rd Jul 2017, 1:41 PM
sunandan
what would happen if i put "num = num -1;" in this cycle
help
while
0 Vote
1 Réponse
10th Oct 2016, 5:06 AM
Andresgallo10
num = int(input()) def fibonacci(n): if n==1: return 0 elif n==2: return 1 else: return fibonacci (n-1) + fibonacci (
exsercise
fibonacci
python
series
1 Vote
7 Réponses
23rd Dec 2020, 1:07 PM
ARNAV SINGH
Why my code is not working I runned this code in codeblocks it works
letter
num
space
spchar
1 Vote
6 Réponses
27th Oct 2019, 3:15 PM
Purushotham
create a java program to test if a given int num is a pallindrome
java
0 Vote
2 Réponses
5th Apr 2017, 9:36 AM
Amit
Poser une question
Poser une question
< Précédent
1
2
3
4
Suivant >
Aujourd'hui en vedette
How to Start Programming ?
2 Votes
time complexity
1 Votes
Why my code doesn't meet all the testcases ??
0 Votes
Would it be possible to store all your Python files in the same directory, and achieve data persistence?
0 Votes
What is better for beginner C# or C++
0 Votes
Using JavaScript with an External File
0 Votes
For loop
1 Votes
Any Other Solution?
1 Votes
Restoring lives
1 Votes
Friends for everyone who wants a software code to access the zzz code ai website
0 Votes