Курсы
Курсы
Компилятор кода
Компилятор кода
Обсуждения
Teams
Войти
Регистрация
Menu
Обсуждения
Поиск
Поиск
Задать вопрос
Задать вопрос
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 голосов
3 ответов
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 голосов
2 ответов
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 голос
5 ответов
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 голосов
3 ответов
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 голосов
2 ответов
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 голос
1 ответ
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 голос
7 ответов
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 голос
4 ответов
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 голосов
3 ответов
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 голосов
3 ответов
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 голос
2 ответов
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 голосов
3 ответов
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 голосов
2 ответов
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 голосов
4 ответов
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 голосов
1 ответ
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 голосов
5 ответов
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 голосов
6 ответов
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 голосов
3 ответов
27th Sep 2016, 4:59 PM
Ibim
Задать вопрос
Задать вопрос
Задать вопрос
Задать вопрос
< Предыдущий
1
2
3
Следующий >
Актуальное сегодня
How to get better with problem-solving and programming
2 Votes
Odd even threads without condition variable
0 Votes
Ejercicio Pytho
0 Votes
What is that z for
0 Votes
Bug on "Java for Beginners Module 3 Quiz"
1 Votes
Suggestions needed
4 Votes
Write a program to find the strings are in isogram or not
0 Votes
What's wrong with this code ? ( Beginner)
1 Votes
Please rate my code from 1 to 10
2 Votes
How to start
0 Votes