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
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23
python3
3 Votos
3 Respuestas
24th Dec 2017, 5:16 AM
Anshuman Bharadwaj
Consider the odd series 1, 3, 5, 7.... 97. Write a function to this series up the last term. Hence print the sum and average.
c++
0 Votos
2 Respuestas
27th Nov 2018, 8:49 AM
Akelemor Bright Cleverly
why the code second-first print 8,9,7 and not 7,8,9? first = {1, 2, 3, 4, 5, 6} second = {4, 5, 6, 7, 8, 9} print(second - first)
python
sets
1 Voto
5 Respuestas
10th Aug 2016, 10:36 PM
Ido Tal
I can't get fully, if this: var a =10, var b = 3 var c = a℅(a -b) and the answer is = 3, but how?
operators
swift
0 Votos
3 Respuestas
16th Dec 2015, 7:41 AM
Den Boyko
So then why don't we add a float number? 20 // 6 is 3, but why isn't it defined as 3.33 or something alone those lines?
numeric-operations
python
2 Votos
2 Respuestas
11th Mar 2017, 8:59 AM
MynameisKyle99
Following the lessons on sololearn and just attending level 3, can i begin to write my 1st program wth the pieces of info?
c++
1 Voto
1 Respuesta
16th Jul 2017, 2:12 AM
Nsikan Edem
public class Program { public static void main(String[] args) { int [ ] myArr = {6, 42, 3, 7}; int sum=0; for(int x=0; x<myArr.length; x++) { sum += myArr[x]; } System.out.println(sum); } }
arrays
java
1 Voto
7 Respuestas
14th Oct 2016, 6:14 AM
Gopal Varma Gottimukhala
Why it prints 3 times instead of 4? I thought it will print 5, 4, 3, 2 so it's 4 times, right? Can someone explain it to me? Thanks
loops
python
1 Voto
4 Respuestas
11th Aug 2016, 10:27 PM
Faizal Khilmi Muzakki
#include <constream.h> int main () { int x = 10, y = 3, z; for (z= 0; z < x;) z = z++ +y; cout <<"\n" << z; return 0; }
constream
for
0 Votos
3 Respuestas
15th Sep 2020, 5:33 AM
Abdul Sami
form an array with elements Akn = nFi + 11 (k) + sin (k) Fi + 12 (n), where u = 3, k, n = 1,2,3,4. Display it as a matrix.
c++
0 Votos
3 Respuestas
11th May 2020, 1:13 PM
Igor King
Input: arr[] = {1, 2, 3, 4, 5, 5, 5, 5, 5, 2, 2, 1, 1} Output: 5 Explanation: The subarray (5, 5, 5, 5, 5} has maximum lengt
do
know
-1 Voto
2 Respuestas
2nd Dec 2021, 9:29 AM
Naveen Kumar
int X[2] [4] = { 1, 2, 3, 4, 5, 6, 7, 8};5 will be the value of and how a. X[0 ][ 1]. b. X[0 ][ 5]. c. X[1 ][ 5]. d. X[1][0]
2
arrays
dimensional
elements
how
in
stored
the
0 Votos
3 Respuestas
18th Jan 2020, 5:18 AM
kaushik agrawal
Why does (a) not aqual any thing in this code ? function test( a , b = 3, c = 42) { return a + b + c; } console.log(test(5));
javascript
0 Votos
2 Respuestas
30th Aug 2020, 9:56 AM
Ziyad Aldoumany
Let's say I have this list a= [1 2 3 4] is it possible to convert it to a normal comma separated list like this a = [1, 2, 3, 4]
lists
python
0 Votos
4 Respuestas
8th Nov 2017, 3:08 PM
thanos moraitis
I'am using the Sublime Text 3, in this program is posible to use JS and HTML 5 together, but I don't now to use. Somebody know?
else
If
0 Votos
1 Respuesta
11th Dec 2017, 8:17 PM
Nícolas Nascimento
public class Program { public static void main(String[] args) { int [ ] myArr = {6, 42, 3, 7}; int sum=0; for(int x=0; x<myArr.length; x++) { sum += myArr[x]; } System.out.println(sum); } } very lovely program. please who can explain the meaning of "+=" in the code?
arrays
java
0 Votos
5 Respuestas
20th Oct 2016, 3:24 PM
Raymond Crump Rukevwe
Given a list of numbers, output their sum using for loop.
[42,
0,
1,
124,
3,
555,
67,
7,
8,
8897,
99]sum=0for
i
in
s
x:
x=
0 Votos
6 Respuestas
18th Jul 2022, 9:40 AM
Syed Anas
how do I get an output of '2' in the program below? int main() { int arr[] = { 3, 1, 2, 5 }; count<<arr[ ]; what do I need to insert in this program to give me an output of '2' ? Thanks
c++
0 Votos
3 Respuestas
27th Sep 2016, 4:59 PM
Ibim
Haz una pregunta
Haz una pregunta
Haz una pregunta
Haz una pregunta
< Anterior
1
2
3
Siguiente >
En tendencia hoy
Can I import any module in python in this app?
1 Votes
Loops and conditions
2 Votes
Algorithm to create maze-like grid
2 Votes
photo upload issue in html code
0 Votes
app for lessons
1 Votes
I can't figure out how to use the getElementById code in JavaScript Code Playground, I've tried multiple times and watched YT
0 Votes
Need a personal tutor
0 Votes
Community and feed option
0 Votes
How Much RAM is Required for Object Detection Project
0 Votes
Hey ! how to install modules on this app
0 Votes