Corsi
Corsi
Compilatore di codice
Compilatore di codice
Discuti
Prezzi
Squadre
Accedi
Registrati
Menu
Discussioni Q&A
Cerca
Cerca
Fai una domanda
Fai una domanda
Write a C program using functions to calculate and display the sum of numbers from 1 to 5 and the product of numbers from 5 to
c
1 Voto
3 Risposte
25th Feb 2022, 3:23 AM
Hoseok
Given two numbers X and Y, write a function that: 1 returns even numbers between X and Y, if X is greater than Y else it returns
(x
{
=
=>
const
myfunction
return
x*
y;
y)
-4 Voti
5 Risposte
5th Oct 2018, 8:24 PM
ohwo oghenekaro
On a screen assume that there is a division..below that there is a button..on pressing the button, 1 should be printed in div..
<div>
0 Voti
2 Risposte
20th Jul 2020, 7:35 AM
Adeeb Khan
Hello guys some one help me explain this while loop x = 1 while x < 10: if x%2 == 0: print(str(x) + " is even")
python3
1 Voto
3 Risposte
10th Aug 2020, 8:08 AM
Akatwijuka Allan
You need to make a program for a leaderboard. The program needs to output the numbers 1 to 9, each on a separate line, followe
print
-1 Voto
2 Risposte
2nd Jul 2021, 3:30 PM
Om Devkar
I really do not understand what 3 1 3 has to do with the document and how we arrived at it. Can someone help me understand that, please?
dom
javascript
6 Voti
5 Risposte
15th Jul 2016, 11:41 PM
Lawrence Ainetor
-->āļø Hey bodies I think can i post 1 code every week suggest me and š šØpost some awesomeš codeš here. I am searching š.
css3
html5
javascript
2 Voti
3 Risposte
10th Feb 2018, 5:09 AM
Ashwin_Chaurasiya
i = 1 while i <=28: print(i) i = i + 8 print("Task Incomplete..!") i = 19 while i >=0: print(i) i = i-2 print('
cpython
numeric-operations
sololearn
1 Voto
4 Risposte
26th Aug 2017, 2:21 PM
G.Vamshi Krishna
So my input question is "How many participants?", i have used int, but i want to limit the numbers from 1 to 30. Any tips? š
input
python
0 Voti
3 Risposte
16th Sep 2019, 8:15 PM
W. Khalid
What is wrong in this code? The Output is showing :- -Infinity Please help me and 1 more thing, I am coding it in Android?
java
0 Voti
2 Risposte
1st Sep 2021, 8:39 AM
Shubham Chaubey
Why write method is behaving differently in code 1 and code 2. In code1 it is writing and in code2 it is returning length of msg
python3
0 Voti
3 Risposte
19th Aug 2020, 2:31 PM
Gubbala Saisree
write an application that reads a number in inches converts it to meters . note : 1 inch =0.0254meter sample output input value for inch:1000 1000.0 inch is 254 meter
java
0 Voti
11 Risposte
20th Mar 2017, 5:20 PM
Khulud Al-slman
Please i need someone to help me explain this code from line 1 to the last line. I just came across it but i don't understand it
programming
python
2 Voti
2 Risposte
5th Apr 2020, 10:32 AM
Okonkwo Emeka
Why the below code is showing the value of x as 16 however it should be 1 similar to the y. Please help me.
c
1 Voto
1 Risposta
21st May 2019, 5:46 AM
Gurvinder Singh Maanak
Complete the folowing function procedure to calculate the sum of the sum from 1 to N. (Sum = 1+2+__+N) , N is entered as the inp
c#
c++
2 Voti
4 Risposte
25th Sep 2017, 8:01 AM
Dries
C language pattern solving 1 2 0 2 3 0 0 0 3 4 0 0 0 0 0 4 5 0 0 0 0 0 0 0 5
modification
needed
0 Voti
5 Risposte
8th Jul 2020, 8:50 AM
Suman Singh
I wants to count total ( 1 ) number present in the given length. This program is only from 0 to 100. But I wants upto 10000.
c
0 Voti
4 Risposte
4th Mar 2020, 5:38 PM
Vishwesh Patel
Why does my sum not summing up things? It's just showing 1, that is value of 1/b.
1
do
help
please
series
sum
while
1 Voto
11 Risposte
19th Jul 2018, 11:58 AM
Parth Salat
How are points determined in Play? It seems wonky. I get offered 1 point to beat a higher lvl opponent, but lose 28 if I donāt?
play
progress?
rigged
unbalanced
0 Voti
3 Risposte
23rd Oct 2020, 5:58 PM
Gary Miller
I am learning python from 1 weeks and html from 2 days and i just started learning mysql also then after it what should i learn
html
learning
mysql
python
2 Voti
2 Risposte
27th May 2020, 12:29 PM
AKASH CHAUHAN
As a result of finishing "back to school", there was an offer of 1 month trial includes, does anyone know how to recall it?
trial
0 Voti
1 Risposta
4th Sep 2020, 7:33 AM
Naser
Well I did it ..but I don't understand why it print 5 ..not 1 at the end ..and also why don't it print finished at the end
python
1 Voto
4 Risposte
22nd Jul 2018, 10:04 AM
Deesha Devi Raghu
Hi guys i tried this code coach called Argentina but 2 test cases was wrong and 1 test was able to see so i did the same code
python
1 Voto
3 Risposte
11th Mar 2022, 1:51 PM
Mohamed Raaid
Isn't these two programs(portion of number valudation in JS) have same output? 1 is working but 2 is not, please help me out
html
javascript
0 Voti
1 Risposta
2nd Apr 2022, 2:56 PM
Logician S
Explain full relations about coding, with their languages, from 1 st to last, any links, or steps, learn me all types of codings
and
coding,
etc
explain
types,
-1 Voto
2 Risposte
16th May 2018, 5:39 PM
Lucky Gunina
What is the value of h(6,8) for the function below?def h(m,n): ans = 1 while (n > 0): (ans,n) = (ans*m,n-2) return(ans)
python3
0 Voti
2 Risposte
16th Feb 2018, 3:16 AM
I Am a Baked Potato
Hi , could anyone explain me one basic programming like l have to type 1 hello,people 2 hello,peoplee again one more e
pythonnumeric-operations
0 Voti
1 Risposta
22nd Apr 2020, 9:26 PM
Shoxrux Xolmatov
Can anyone explain me what is the use of return ??? What is the difference between return 0 return 1 return 4*factor(n-1)
c++
recursion
0 Voti
2 Risposte
23rd Oct 2016, 1:39 PM
Pradeep C
seats = 10# initial number of seats while seats > 0: # seat available? print("Sell ticket") # ticket sold seats = seats - 1
python
0 Voti
1 Risposta
5th Jun 2023, 4:31 AM
Sujay Chatterjee
PLEASE VIEW MY CODE IN COMMENT SECTION. Can anyone edit it so i could enter the name of horse 1 horse 2. I want to cout and cin.
beginner
c++
cin
classes
cout
cpp
loops
opp
0 Voti
8 Risposte
21st May 2017, 3:51 AM
eiro Jan
Mike's Challenge Series #1
1
challenge
code
mike's
pro
problem
programming
series
sololearn
3 Voti
13 Risposte
21st Oct 2017, 7:01 PM
Lil Machina
can someone tell me what I'm doing wrong? I have outputs the result of 2 tests and 1 does not read the result from the first
javascript
0 Voti
3 Risposte
17th Jun 2021, 6:48 PM
iking Š»
how to make a row with number 1 and column? when I click Enter key in my keyboard it want's to create new row numbered 2
angular
css
html
javascript
0 Voti
3 Risposte
6th Apr 2022, 5:01 AM
Technology RN
My test case 1 is wrong please help my output is 1st is 144 and 2nd 15.7 but the expected output should be 144 and 78.5.imabegin
java
-1 Voto
4 Risposte
15th Sep 2022, 10:18 AM
Mark Angelo Alarcon
In C++ I want to take input 1 for even number output and input 2 for odd number output. How I limit input to user.
cin
cout
for
int
while
0 Voti
4 Risposte
31st May 2017, 5:23 PM
Umair
How can i create 2 link to act upon 1 button. In a way that if a user clicks the button, it will run two links at once.
ahref
functions
html
php
reference-types
xhtml
0 Voti
5 Risposte
27th Jul 2020, 2:54 PM
henry okafor
Write a program to store the all the prime number from 1 to 1000 in to a file using objects. Read all the prime numbers store
c++
0 Voti
3 Risposte
13th Nov 2021, 8:39 AM
Kamalesh Ray
Use a loop to calculate the sum of all numbers that are a multiple of 3 in the range of 1 to 1000. A number is a multiple of 3
12.2
r
0 Voti
3 Risposte
30th Dec 2021, 5:59 PM
Hector Torres
Hi coders...M stuck here.. I want this code to return 1 if an element in the array has exactly one non zero neighbor. Like arr1
arrays
java
0 Voti
4 Risposte
8th Apr 2017, 6:08 AM
Ricardo Chitagu
Iām trying to do the zip code validator code coach. My code works for test cases 2-5 but not for 1 and 6. Please help!
codecoach
python
0 Voti
2 Risposte
7th Oct 2023, 3:12 AM
Josh Rhodes
Let's say you have a list of N+1 integers between 1 and N. You know there's at least one duplicate, but there might be more.
c++
java
python
sololearn
2 Voti
2 Risposte
14th Nov 2017, 6:59 AM
SaiKumar
when i run my code suppose with input 1 then from 0 to 10 output is correct but i get 11 th value as garbage value! why so??
c++
garbag_value_problem
1 Voto
7 Risposte
10th Jan 2017, 7:40 AM
Md Shaifan Shahid
I am looking to start my own web design business, it's going to a 1 man show. Is python hard to use as a front end prog language
python3
web
2 Voti
6 Risposte
30th Jul 2017, 9:26 PM
James Barrow
You need to make a program for a leaderboard. The program needs to output the numbers 1 to 9, each on a separate line, follow
answer??
-3 Voti
3 Risposte
20th Aug 2021, 6:11 AM
Yogeshwaran A
We can overload + operator. But how is it possible in case of ! Operator? It just converts logical 1 to 0 or vice versa.
c++
operator-overloading
0 Voti
4 Risposte
4th Aug 2017, 8:19 PM
Bhavesh Mahale
Pyton
,
,
.
.
(
).:
**.
000
000
1
1
30
-2 Voti
1 Risposta
16th Feb 2021, 2:26 PM
dragon 03
Real new, sorry. But how does one compile different languages/scripts. Are they all seperate or can you write multiple ones in 1
c
c++
css
html
java
php
python
-2 Voti
3 Risposte
3rd Mar 2017, 5:37 AM
Solo J
I want to create a program which will count number like 1 and then 2 and then 3 when user click the button every time.
javascript
0 Voti
2 Risposte
18th Jul 2019, 3:27 AM
Noor
I want to learn asp.net from scratch anyone have any advice or website/video that can help me , I have 1 week before my intervie
asp.net
0 Voti
2 Risposte
5th Jul 2021, 4:28 PM
Dev Gajjar
[SOLVED] How is it 0 here? I thought it must be 1 cause they look the same each other. Is the problem length of the strings?
c++
cpp
output
string
0 Voti
2 Risposte
11th Sep 2021, 10:37 PM
mesarthim
Fai una domanda
Fai una domanda
Fai una domanda
Fai una domanda
< Precedente
1
...
37
38
39
...
41
Successivo >
Popolare oggi
Guys I don't know anything about cooding who can help me pls
1 Votes
Decorators in python.
2 Votes
Coding for Cybersecurity
1 Votes
Need help
1 Votes
What do you think of this code and what are your suggestions for developing and modifying it?, How can I develop myself more?
1 Votes
Salut tout le monde
2 Votes
Pointers in c#
1 Votes
Please click me
0 Votes
Can sololearn have multiple inpus&outputs?
3 Votes
How to Get Better at Solving Programming Problems
0 Votes