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
3 positive integers. Find max. I'm having trouble with the input validation coding and combining it with max code.
function-arguments
functions
if-statements
python
python3
return
variables
0 Votos
4 Respuestas
15th Nov 2017, 8:47 AM
Vincent
A program is to find and display the sum of two numbers only if they are positive integers.
strings
-2 Votos
2 Respuestas
9th Jun 2020, 11:23 PM
Ibitoye Blessing
In one-dimensional list a=[a1, a2, ..., an] all positive elements that have an even sequence number, rewrite the beginning of...
python3
0 Votos
4 Respuestas
6th Apr 2018, 4:13 PM
Пиров Мустафо
Have you tried it? To use Sololearn and upload your picture from facebook. Would you archive a positive outcome?
css
html
javascript
1 Voto
2 Respuestas
27th Nov 2017, 1:19 AM
Gwakchang💻
[ ASSIGNMENT: ] Balanced Number
assignment
balanced
digits
java
method
numbers
positive
string
sum
task
32 Votos
25 Respuestas
27th May 2018, 3:27 PM
Danijel Ivanović
[ ASSIGNMENT: ] Special Number
assignment
digits
java
number
positive
special
task
30 Votos
22 Respuestas
25th May 2018, 11:38 AM
Danijel Ivanović
what wud happen if we call gcd(m,n) with m positive nd n negative in the following definition
python
1 Voto
1 Respuesta
22nd Jul 2016, 7:09 PM
Vipul Jain
Positive integers N and K are given. Using only addition N completely by K, as well as the remainder of this division.
c++
0 Votos
4 Respuestas
25th May 2020, 1:14 PM
Sarvar Muxammadaliyv
Write a function that find the sum of positive elements in the array that are located in front of the maximum element
c++
code
coding
cpp
help
solve
sos
0 Votos
2 Respuestas
15th Oct 2020, 4:22 PM
Azat Malgazhdar
Write a function intreverse(n) that takes as input a positive integer n and returns the integer obtained by reversing the digits
a
as
function
input
integer
intreverse(n)
positive
takes
that
write
0 Votos
4 Respuestas
19th Aug 2018, 6:26 PM
Aravindharaj P
I'm trying to write a while loop that accepts the input from the user and the test if it's positive or negative.
input
java
loops
2 Votos
5 Respuestas
7th Nov 2016, 2:38 AM
darius mohammed
Write a program that takes an arbitrary positive integer as input and calculates and prints the number of digits 0 to 9 in it.
python
1 Voto
2 Respuestas
25th Dec 2020, 12:55 PM
a.m
i have some project that ask me to write a program that will ask the user to input n positive number.
c++
code
coding
flowchart
psuedocode
0 Votos
5 Respuestas
23rd Jan 2017, 8:40 AM
nsazw
Does anyone know the code for the program, if the number is even, odd, positive or negative, using the recursive?
c++
0 Votos
2 Respuestas
23rd Sep 2020, 11:29 AM
mohammad abas
Write a program in Java which inputs a positive natural number N and prints the possible consecutive number combination, which N
code
java
0 Votos
4 Respuestas
18th Aug 2017, 7:26 PM
Mohit
how do i make this code display the answer in positive (+) even if the answer is in negative.
c++
1 Voto
2 Respuestas
14th Jan 2017, 3:57 PM
Cody Arthur
Here is an function to return the maximum value among three positive integers. There is an error in this function. Provide an in
python3
-2 Votos
5 Respuestas
23rd Sep 2019, 1:18 PM
Kartik Kakad
Pls help me to solve this programe ((Accept 20 value .find the sum of positive and negative number separately))
java
0 Votos
2 Respuestas
29th Oct 2016, 7:38 PM
shaima
use for...while loop and do...while loop to find the factoria of n positive integers between 1 and 50
c++
0 Votos
1 Respuesta
26th Aug 2018, 3:51 PM
Ojurommy Oluwaseun Oluwadermmylare Oluwafemmy
Here is an function to return the maximum value among three positive integers. There is an error in this function. Provide an in
urgent
-1 Voto
4 Respuestas
5th Mar 2021, 4:58 PM
vinoth .k
Given an array of positive even and odd numbers. We have to find the index of largest even number. Use that maximum even number
array
c
c++
devleper
help_me
java
java_program
solve
1 Voto
3 Respuestas
15th Nov 2018, 3:36 PM
Abrar Bandar
Write a c++ program that add n even numbers and multiply n odd numbers from a given positive integers?
c++
0 Votos
2 Respuestas
8th Jan 2017, 3:51 PM
Temesgen
Find the square root of any positive integer without using built in functions like sqrt (), pow () etc... Using c++.
finding
root.
square
2 Votos
2 Respuestas
28th Aug 2017, 7:51 AM
Quassarian Viper
Write a Java program that reads an positive integer and count the number of digits the number (less than ten billion)??
java
0 Votos
1 Respuesta
30th Sep 2019, 1:30 PM
Hawaa Basheer Ali Elamin
We’re building a model to predict spam email. The positive cases are spam and the negative cases are legitimate. If we’re going
machine_learning
0 Votos
1 Respuesta
20th Jul 2020, 2:00 PM
Levi
[ ASSIGNMENT: ] Next Palindromic Number
assignment
function
integer
next
number
palindromic
positive
task
28 Votos
16 Respuestas
8th Jun 2018, 6:53 PM
Danijel Ivanović
How to validate my input? the input is positive number, if i put character or negative number, it will send me output error
c
0 Votos
3 Respuestas
11th Nov 2020, 12:55 PM
Hào Đặng
A numeric array of length N is give. You are required to design a function that finds all positive numbers in the array that h
algorithm
data
3 Votos
3 Respuestas
30th Jun 2018, 6:55 AM
kim qim
How can I write a program that take a n(a positive number)as input,make n×n list then return the 0 and 1 into spiral.
python
0 Votos
3 Respuestas
3rd Jan 2020, 10:16 AM
fatemeh salmani
Write program use a rand() function to produce two positive integer. Program should promt user question.How much is 6 times 7?
python3
0 Votos
1 Respuesta
21st Oct 2018, 12:55 PM
Goodboy08
How do I create a range with both positive and negative integers, and print out the times table of the value N?
for
loops
1 Voto
3 Respuestas
23rd Jan 2018, 11:35 PM
Jonathan Cross
Write a program that asks the user to enter a list of positive or negative integers using the integer 0 as the sentinel.
c++
help
problem
question
0 Votos
3 Respuestas
1st Jul 2021, 4:21 AM
Rao Muzaffar
Write a Program to find the longest positive sequence in array.For eg-> Input -> 1 2 -4 6 7 8 9 -5 3 Output -> 6 7 8 9
c++
0 Votos
12 Respuestas
7th Jul 2017, 5:17 PM
Rashi Walia
i am trying to make a program which display the sum of numbers only if user write a positive number using only while loop
java
0 Votos
2 Respuestas
30th May 2021, 4:25 PM
Mahmoud Hamed
Please help! The FIRST is the fractional positive number, salary; SECOND field is an integer, the number of days worked in a...
c++
cpp
help_with_programming
0 Votos
2 Respuestas
25th Mar 2020, 2:43 PM
PUFFIN Channel
Write a program using DIV(J, K) which reads a positive integer N> 10 and determines whether or not N is a prime number. (Hint: N
ads
c
cprogram
datastructures
dsa
schaum
sololearn
solutions
2 Votos
2 Respuestas
30th Jan 2022, 6:36 PM
deepak patel
Write a program which will raise any number x to a positive power n. Obtain values of x and n from the users.
c++
0 Votos
3 Respuestas
9th Sep 2016, 3:29 PM
Praveen
How can I output numbers that evenly divide to the all the positive numbers up until the user's input number?
c++
0 Votos
2 Respuestas
27th Feb 2017, 7:37 PM
Poppy
Input a value for variable n, repeatedly print the value of n, decreasing it by 0.5 each time, as long as n remains positive
c++
0 Votos
3 Respuestas
11th Oct 2017, 8:27 AM
R Retubado
int x = 10 if (x > -1); if (x != 0); if (x > 0); System.out.println (“x is a positive number having value “ + x);
if
if-statements
in
java
output
2 Votos
2 Respuestas
7th Dec 2020, 11:43 AM
Nadia Arias
a program that takes the integer (n) as positive and prints the sum of prime numbers greater than 1 and less than n as output
python
0 Votos
2 Respuestas
26th Dec 2020, 12:16 PM
a.m
How to create CLI program in c# that will accept an integer input convert positive whole numbers from 0 to 99,999 to words?
beginner
c#
code
0 Votos
2 Respuestas
16th Sep 2021, 11:55 AM
Dim Pol
[ ASSIGNMENT: ] Transform To Prime
assignment
integers
list
minimum
numbers
positive
prime
sum
task
transform
27 Votos
12 Respuestas
2nd Jun 2018, 9:28 AM
Danijel Ivanović
[ ASSIGNMENT: ] Form The Minimum [ UPDATE: ] Form The minValue Without Leading Zero!
assignment
form
integers
java
languages
method
minimum
positive
task
value
29 Votos
16 Respuestas
2nd May 2018, 9:28 AM
Danijel Ivanović
Write a program with the function chkOdd() that takes one argument (a positive integer) and report if the argument is odd or not
function-arguments
python
-1 Voto
2 Respuestas
17th Nov 2020, 9:13 PM
Prerna Keshkar
[ ASSIGNMENT: ] Next bigger number with the same digits
assignment
bigger
digits
function
next
numbers
positive
return
same
task
26 Votos
12 Respuestas
29th May 2018, 7:47 AM
Danijel Ivanović
Task is to form one dimention array "B" that wil hold only positive elements from the given matrix sorted in ascending order
c++
cpp
help
sollution
sololearn
solve
sos
0 Votos
1 Respuesta
3rd Oct 2020, 11:26 AM
Azat Malgazhdar
Enter n positive integers to print out the prime numbers in the sequence and the number of primes and max of all that primes
c++
0 Votos
1 Respuesta
8th Oct 2019, 2:38 PM
Lalala
please help me to write a c++ program to find the LCM of 2 integer positive number using function named 'Laghu'.
c++
functions
1 Voto
1 Respuesta
12th Jan 2017, 11:44 AM
Anurag Nihal
Write a python function to return the decimal value of 1)no. of positive no.2)no. of neg. no. to the no. Of elements in array
its
urgent
0 Votos
2 Respuestas
17th Apr 2020, 5:03 AM
bhaskar bhowick
Haz una pregunta
Haz una pregunta
Haz una pregunta
Haz una pregunta
< Anterior
1
2
3
4
Siguiente >
En tendencia hoy
Help please?
3 Votes
How to get better with problem-solving and programming
1 Votes
Ejercicio Pytho
0 Votes
Odd even threads without condition variable
0 Votes
Online voting system
2 Votes
What is that z for
0 Votes
Bug on "Java for Beginners Module 3 Quiz"
1 Votes
Suggestions needed
4 Votes
SQL practice
2 Votes
Game development
0 Votes