Cursos
Cursos
Compilador de Código
Compilador de Código
Debatir
Precios
Teams
Iniciar sesión
Registrarse
Menu
Sesiones de PyR
Buscar
Buscar
Haz una pregunta
Haz una pregunta
int x=10, float y=3.3, int ans = x * y, ans is 32, why not 33 ?
c++
float
int
multiplication
operators
1 Voto
4 Respuestas
4th Jan 2018, 10:57 AM
cc122
What is the output of this code? enum Test {a=2,b,c,d,e}; static void main (string [] args){int(x) = (int)Test.c ; writeln (x)}
enums
-3 Votos
4 Respuestas
7th Jun 2017, 11:50 PM
thomo
class Person: def __init__(self, name): self._name = name @property def name(self): return self._name
python3
-2 Votos
2 Respuestas
1st Dec 2020, 7:22 AM
S8tanGaming_YT
What is the output of this code if the user enter '42' as input: age = int(input()) print(age+8)
abcstringsandvariables
modul2quiz
python3
-4 Votos
5 Respuestas
7th Nov 2020, 7:14 AM
Mehar Jaiswal
// Button creation starts... let countjumps = 0; function count() { countjumps += 1; console.log(countjumps )
f
1 Voto
1 Respuesta
26th Aug 2022, 9:33 PM
January Martine
What is the output of the following code? function magic(...nums) { let sum = 0; nums.filter(n => n % 2 == 0).map(el => sum+
javascript
rest-parameters
0 Votos
3 Respuestas
15th Oct 2019, 11:09 AM
amal mohammed
Do you know were i can study jQuery game development for beginners ??
=
css
game
html
jquery
0 Votos
5 Respuestas
6th Oct 2018, 9:38 AM
Daniel D (school)
Can someone please help me with this code..?? Showing indentation error again n again in "cnt_c = 0" .
python3
0 Votos
2 Respuestas
15th Feb 2022, 10:02 AM
Lakshya Mittal
What is the use of pointers when we can simply use = for doing the same thing
c
1 Voto
2 Respuestas
3rd Sep 2022, 3:27 PM
Aditya Paswan
i = n sum sqrt(i ^ 5 + i ^ 7) / (n + m) i=m
h
0 Votos
1 Respuesta
5th Dec 2022, 5:41 PM
Mostafa Eldsoky
5 + 4 + 3 + 2 + 1 = 15. Output: Enter a number: 5. The sum of the first 5 integers is 15.
java
2 Votos
7 Respuestas
21st Oct 2020, 1:09 PM
Celine V. Caballero
for(int x = 0; __ < 5; x++ ) { System.out.printIn ("in a loop") }
java
puzzle
questions
-2 Votos
3 Respuestas
1st May 2021, 6:36 AM
Tara Gupta
In int x = sample [1] [0]; of array, why [1] has not been executed?
arrays
java
-1 Voto
4 Respuestas
6th Dec 2016, 11:03 AM
Junaid B
Computer can't store floats perfectly, like 1/3 = 0.3333... So, how to overcome this problem?
data-types
python
0 Votos
3 Respuestas
12th Dec 2016, 3:38 PM
Ashish Sharma
What is the result of this code? fib = {1: 1, 2: 1, 3: 2, 4: 3} print(fib.get(4, 0) + fib.get(7, 5)).with explanation
dictionaries
dictionary
python
-1 Voto
4 Respuestas
16th Nov 2018, 11:29 AM
Priyanshu Ghatiya
import java.util.Scanner; class MyClass { public static void main(String[ ] args) { Scanner myVar = new Scanner(System.in); System.out.println(myVar.nextLine()); } }
input
java
0 Votos
6 Respuestas
12th Oct 2016, 6:53 AM
Javed
Who can say what it means? Int[ ][ ] A = new int [ 10][ ];
c#
0 Votos
3 Respuestas
24th Sep 2018, 10:30 AM
Tigran Agajanyan
//Called when application is started. function OnStart() { //Create the main layout. layMain = app.CreateLayout( "Linear
javascript
python
0 Votos
2 Respuestas
24th May 2018, 3:37 AM
Muh Yusril
what is the sum of the list elements as out put of this code:- list = ["one","two", "three","four", "ten"]
list[:-1]
lists
pop()
python
0 Votos
4 Respuestas
7th Jun 2020, 9:57 AM
Azad m. A.
A game machine has 5 games installed on it, represented in this list: games = ['Soccer', 'Tic Tac Toe', 'Snake', 'Puzzle', 'Ra
solution
0 Votos
8 Respuestas
17th Aug 2023, 4:23 PM
Bhargavi Guntakala
What does this line of code mean in JS ("var computers = parseInt(readLine(), 10)")
javascript
0 Votos
1 Respuesta
8th Nov 2022, 10:54 AM
Usman Kamaldeen
How to put <ol type = a > to get the list tag output (a)
html
list
tags
0 Votos
3 Respuestas
2nd Sep 2018, 3:16 PM
kp kalia
Why is it List<integer> list = new ArrayList();? shouldnt the first one be ArrayList instead of List?
java
lists
0 Votos
4 Respuestas
28th Jan 2016, 10:19 PM
Branko Nešić
for (int a = 0; a < 50; a+=10) HOW DO THEY GET THE 10 SOMEONE PLEASE HELP @_@
c++
loops
0 Votos
7 Respuestas
18th Jan 2017, 4:58 PM
Jade-leroy
Given a table SALARIES, such as the one below, that has m = male and f = female values. Swap all f and m values (i.e., change al
challenge
0 Votos
1 Respuesta
21st Dec 2016, 5:24 AM
Akwin Lopez
Why does not modulation work. Why if, for example: 5%2 output is an error , but not 5%2 = 1
error
4 Votos
2 Respuestas
17th Apr 2019, 1:23 PM
KolaTender
Which app can I use to start project on Android with the following language = HTML css Javascript
coding
css
html
javascript
offline
0 Votos
4 Respuestas
26th Dec 2019, 6:54 AM
ArehmaN
I don’t understand this code. Why is it max_index = len(words)-1? And so on. Please help. Thank you.
loops
0 Votos
3 Respuestas
9th Jul 2018, 5:52 PM
Shane de Silva
fib = {1: 1, 2: 1, 3: 2, 4: 3} print(fib.get(4, 0) + fib.get(7, 5))
dictionaries
python
0 Votos
1 Respuesta
11th Jun 2018, 5:43 AM
Saurav nalla
What is the meaning of this line " Class[] theInterfaces = o.getClass().getInterfaces();" in the following code
class
inheritance
interface
java
1 Voto
1 Respuesta
6th Jan 2021, 2:19 PM
Yash Chaudhari
Could anyone explain why we can't assign string directly through = operator in structure concept in C programming
structure
-1 Voto
3 Respuestas
3rd Oct 2019, 8:52 AM
madhumathi
What is the output of this code? int result = 0; for (int i = 0; i < 5; i++) { if (i == 3) { result += 10; } else {
java
-5 Votos
6 Respuestas
18th Jun 2017, 11:06 AM
Walter Mugo
public class Program { public static void main(String[] args) { int [ ] myArr = {6, 42, 3, 7}; int sum=0;
arrays
1 Voto
8 Respuestas
16th Mar 2018, 3:48 PM
Devansh Gupta
Let's say I have something.style.top = "Ypx", how to extract and increment that Y, if Y can be either negative or positive?
increment
js
6 Votos
2 Respuestas
5th Sep 2020, 7:41 AM
🍇 Alex Tușinean 💜
"scanner myvar = new" is new a value here? Like saying this is empty for now?
input
java
1 Voto
3 Respuestas
30th Aug 2017, 6:30 PM
Yuko
What's the difference between this {MyClass obj; MyClass *ptr = &obj;} and this {Myclass *ptr=new Myclass}?....
c++
2 Votos
1 Respuesta
2nd Sep 2022, 10:30 AM
Emediong Ekoh
Why does this code not work? Help! How a * (b, c, d) = a??
challenge
help
javascript
output
1 Voto
1 Respuesta
7th Jun 2018, 12:14 PM
Andre Daniel
In html when are you able to <p class = "3"> as in a number for class
css
html
1 Voto
2 Respuestas
25th Nov 2018, 8:16 PM
jack
I dont know how to code, my code is technically = 0, please anyone tell me where you learn this to create it to be awesome
codeplayground
0 Votos
12 Respuestas
30th Aug 2020, 3:11 PM
Fenix X
If I have 2 players and each get points. Ho would write a line of code to say, if playerA number is = b then don't add a point?
ifstatements
java
2 Votos
12 Respuestas
3rd Sep 2019, 9:42 PM
Sunflowermoon
# a list comprehension cubes = [ for i in range(5) i**3] print(cubes) why is it not possible
lists
1 Voto
2 Respuestas
4th Jun 2019, 3:00 AM
B!P!N R@j
Why is the output 17 ? (this is the array modul quiz(SoloLearn)) int result = 0; for (int i = 0; i < 5; i++){ if (i == 3) { result += 10; }else{ result += i; } } System.out.println (result);
java
0 Votos
5 Respuestas
22nd Jul 2016, 9:41 AM
Peter Müller
what is difference between: public class Animals { ..... and Animal dog = new Animal();
in
java
2 Votos
1 Respuesta
15th Sep 2017, 6:02 AM
Prathamesh Dhuri
What will the code below output to the console and why? -> Know = Like
javascript
0 Votos
1 Respuesta
14th Aug 2016, 8:16 PM
Thomas Delvoye
What does "new Loader()" in " Thread t = new Thread(new Loader()); " means from the below code?
java
0 Votos
3 Respuestas
7th Apr 2021, 6:44 AM
Mons Joseph
public class Main { public static void main(String[] args) { //correct variable declarations int name = "J
can
don'tknow
help
i
me
todo
what
who
0 Votos
2 Respuestas
21st Nov 2020, 1:58 AM
John Hale
public class Program { public static void main(String[] args) { //fix the variable types string name =
0
error
line
0 Votos
2 Respuestas
25th Jul 2022, 6:12 PM
30 Nidhi Kumari 10B
I don't understand why it gives 30 in php $ foo = 5; echo $ foo * $ foo ++;
php
1 Voto
4 Respuestas
17th Sep 2020, 2:18 PM
Germani benitez alfonso
int x = 25 % 7; cout << x; /// why the output is 4 ??
c
c++
1 Voto
2 Respuestas
26th Mar 2017, 1:51 AM
Gilang Rizki
int num = 1; int number; while (num <= 5) { cin >> number; num++; }
simple
0 Votos
2 Respuestas
22nd Jun 2018, 9:28 AM
Superman Batman
Haz una pregunta
Haz una pregunta
Haz una pregunta
Haz una pregunta
< Anterior
1
...
28
29
30
...
38
Siguiente >
En tendencia hoy
Functions in python
2 Votes
How to make a playground
1 Votes
How can you find whether a number is odd or even in a different way(other than (x%2==0))[ by New logics algebraic way ]?
1 Votes
I need advice
1 Votes
Html 5 document question
1 Votes
this query always result to be incorrect from Sorting Data lesson
1 Votes
Python
0 Votes
𝙵𝙸𝙽𝙳 𝚃𝙷𝙴 𝙸𝙽𝙿𝚄𝚃 𝙾𝙵 𝚃𝙷𝙴 𝙿𝚁𝙾𝙶𝚁𝙰𝙼
1 Votes
Can someone explain inline and block elements please
0 Votes
Can you tell what is wrong with the code
0 Votes