Cursos
Cursos
Compilador de Código
Compilador de Código
Debatir
Teams
Iniciar sesión
Registrarse
Menu
Sesiones de PyR
Buscar
Buscar
Haz una pregunta
Haz una pregunta
Why must num and array be initialized in parentheses?
dsa
fibonacci
javascript
recursion
0 Votos
1 Respuesta
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 Votos
20 Respuestas
26th Jan 2021, 9:52 AM
Hazel Flores
How to fix this error so that num = [1,3,4] ?
python3
3 Votos
6 Respuestas
28th Aug 2020, 8:48 AM
Rajan K
A program to find any 11 num in a given array
code
python
-2 Votos
3 Respuestas
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 Votos
1 Respuesta
26th Jun 2021, 12:37 PM
Md Nazim Uddin Sagor
Why infinite loop gets created when num is decremented after continue statement?
loop
2 Votos
2 Respuestas
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 Votos
2 Respuestas
9th Mar 2021, 5:05 PM
Ojukwu Franklin Ifeanyi
for num in range(10,20): for i in range(2,num):
python
0 Votos
1 Respuesta
15th Feb 2019, 5:13 AM
Jasmine
I can't even test whether num is prime!
c++
despair
ununderstandable
0 Votos
2 Respuestas
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 Votos
3 Respuestas
26th Jun 2020, 9:31 PM
Kevin Suárez
How to check whether a num is prime or not
c++
0 Votos
5 Respuestas
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 Votos
3 Respuestas
23rd May 2019, 5:22 AM
alif sadam
how to get a random num in Swift
swift
0 Votos
1 Respuesta
5th Aug 2020, 6:08 PM
CodyBoy
Как получить массив из слов равных числу num
functions
-2 Votos
1 Respuesta
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 Votos
7 Respuestas
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 Voto
2 Respuestas
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 Votos
2 Respuestas
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 Votos
2 Respuestas
9th Dec 2016, 1:59 PM
Varun Singh
How let the users just answer a num input in python
input
python
user
2 Votos
2 Respuestas
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 Voto
2 Respuestas
15th Aug 2016, 7:20 PM
Clayton Summers
Int num ; cin>>num what it means in c++
c++
variables
-5 Votos
4 Respuestas
25th Sep 2017, 8:26 PM
Gaurav kumar
>>> x = 3 >>> num = 17 >>> print(num%x)
numeric-operations
python
0 Votos
2 Respuestas
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 Voto
2 Respuestas
3rd Nov 2017, 1:26 AM
Shadi Ghazi
How I can increase num 80 every time the loop is running?
increment
javascript
loops
1 Voto
4 Respuestas
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 Votos
1 Respuesta
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 Votos
9 Respuestas
16th Sep 2019, 3:28 AM
Andrew DeRiemacker
Write a java program for count a num of variables in a string.
java
0 Votos
8 Respuestas
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 Votos
13 Respuestas
3rd Sep 2022, 6:01 PM
Mohammad Faiz
In web , how to input any num the user want ? ..
html
notepad
sololearn
4 Votos
3 Respuestas
10th Jun 2018, 8:16 AM
Deesha Devi Raghu
WAP in C++ to add two num without using + addition sign
c++
0 Votos
3 Respuestas
19th Jan 2022, 4:11 PM
Mohammad Jawwad
try: num = 5 / 0 except: print("An error occurred") raise
exceptions
python
0 Votos
3 Respuestas
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 Votos
5 Respuestas
10th Feb 2021, 9:21 AM
GORA GOWRISHANKARVARAPRASAD
Can someone look at my coding bits number thats name num 6
help
need
0 Votos
3 Respuestas
19th May 2020, 3:31 PM
Shannie
Two for loops that reads all num in x rows and y columns
python
0 Votos
2 Respuestas
8th Jun 2019, 5:57 PM
Marpari
int num = 1; while(num<=20){ if (num % 3 == 0){ cout<<num<<endl; } num+=1; }
while
0 Votos
4 Respuestas
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 Votos
6 Respuestas
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 Votos
4 Respuestas
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 Votos
4 Respuestas
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 Voto
2 Respuestas
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 Voto
6 Respuestas
20th May 2020, 7:33 PM
T.Jansi Rani
Help with c++ code
c++
codeplayground
num
perfect
1 Voto
7 Respuestas
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 Votos
3 Respuestas
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 Voto
5 Respuestas
27th Aug 2017, 3:21 PM
5p4c353c
Var = 42 num // kind of nuts but getting hang of it ...
variables
0 Votos
1 Respuesta
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 Votos
2 Respuestas
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 Votos
4 Respuestas
23rd Jul 2017, 1:41 PM
sunandan
what would happen if i put "num = num -1;" in this cycle
help
while
0 Votos
1 Respuesta
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 Voto
7 Respuestas
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 Voto
6 Respuestas
27th Oct 2019, 3:15 PM
Purushotham
create a java program to test if a given int num is a pallindrome
java
0 Votos
2 Respuestas
5th Apr 2017, 9:36 AM
Amit
Haz una pregunta
Haz una pregunta
Haz una pregunta
Haz una pregunta
< Anterior
1
2
3
4
Siguiente >
En tendencia hoy
What's wrong with this code ? ( Beginner)
4 Votes
Pig Latin
0 Votes
Someone can help me
0 Votes
Square Roots
0 Votes
What's wrong with this?
2 Votes
Currently learning C++, I’m getting into socket programming with C++
0 Votes
Is there any new bug in the projects reply sections?
1 Votes
I’m new someone can help me
0 Votes
What's doctype htMl
2 Votes
HTML community, HELP!!
0 Votes