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
The following code examine three variables -- x, y, and z -- and prints the largest odd number among them. If none of them is o
python3
0 Votos
5 Respuestas
29th Sep 2020, 10:40 PM
Ali Rezaei
The program below prints an array in descending order.what changes can i make to print it in ascending order? thank you
array
cpp
help!
1 Voto
1 Respuesta
10th Dec 2018, 7:46 PM
RiGeL
why I get type error here, it prints element number 80 alone but I get type error when I try to print two elements
python3
1 Voto
2 Respuestas
31st Jul 2021, 6:20 AM
Ahmed Adel
How can i take input from scanner ...like i code and "what is your age prints on the screen " and i will put if else condition ?
java
0 Votos
7 Respuestas
26th May 2020, 10:36 AM
Harsh Vyas
Please, can somebody explain to me why this prints a list with both 1 & 2 in it instead of just 1in the list?
python3
0 Votos
2 Respuestas
6th Apr 2019, 4:31 AM
Thimira Rathnayake
write a python program using a while loop that asks the user for a number and prints a countdown from that number to zero.
for
loop
Using
-1 Voto
3 Respuestas
4th Sep 2017, 12:59 AM
Vanapalli Sandeep
Write a C++ program that accepts an integer number and prints the following: 1) Sum of even factors of the number
c++
0 Votos
1 Respuesta
23rd Oct 2020, 1:36 AM
Deema Thnabi
The Array below reads 5 numbers and prints the largest number,but what changes i should make to print out the smallest number???
c++
1 Voto
3 Respuestas
14th Jul 2017, 12:52 PM
RiGeL
: Suppose you know a person who sells mobile phone sims. He takes figure prints of the customers and enters their CNIC numbers
computerscience
0 Votos
2 Respuestas
13th Jul 2020, 5:19 AM
Mobeen Akbar
How to include \ as part of your string? Example : "martin\" prints martin\\. How do yoo make it print martin\
python
strings
0 Votos
3 Respuestas
18th Dec 2016, 9:55 PM
Akshata
I want to create a simple app that prints selected pictures into preset passports size. I want to use Java. How can I start that
java
2 Votos
3 Respuestas
23rd Mar 2018, 3:50 PM
Simon Nyongesa
Make changes in the code so that it prints values<10 but not value 10, WITHOUT changing the test condition of while loop
loops
python
0 Votos
2 Respuestas
7th Jan 2020, 4:50 AM
Lalit kumar
so this should print variable a up to the value x (wtever u enter) i dont know whats wrong it just prints a++ until it times out
c++
loops
2 Votos
6 Respuestas
17th Jan 2017, 6:57 AM
jonathin
Create a program that asks a maths calculation and prints if the user answers it right or wrong. Can you change one of
python
strings
0 Votos
4 Respuestas
4th Dec 2017, 5:37 AM
m yumbong
No break in case 1 but why enters case 2 and also prints tuesday? Since Day equals 1 and is not equal 2 ?
switch
0 Votos
4 Respuestas
10th Mar 2019, 4:07 PM
αλφας βήτας
write a program in pycharm which accepts a time interval in seconds and prints the equivalent time in hours minutes and seconds.
pycharm
python
0 Votos
3 Respuestas
9th Mar 2018, 2:36 AM
usman
When I input 2 it prints human and not human. Should just print human. Tried to get rid of the else statement , it didn't work.
c++
cpp
else-statements
if-statements
1 Voto
4 Respuestas
22nd Oct 2018, 6:29 PM
Dels White
Write a Python program that takes an integer as input , prints result if m is a sum of a square and cube
python3
1 Voto
1 Respuesta
3rd Apr 2018, 2:16 PM
Gladson Dsouza
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
Can anyone explain why this code always prints "True" yet changing it to int or str only always gives "False"?
boolean-logic
comparison,
0 Votos
2 Respuestas
9th Apr 2017, 5:17 PM
Callum Rogers
s is a string of lower case characters. Write a program that prints the longest substring of s which is in alphabatical order
dictionaries
loops
strings
2 Votos
1 Respuesta
3rd Oct 2017, 11:47 AM
vivek kustwar
can anyone perform a code that when a user asked to put an email adress, the program prints output when find '@'( in c lang...)
be
case
email
in
should
the
upper
0 Votos
3 Respuestas
23rd Jan 2019, 9:51 PM
Boniphace Mwampanda
I wrote a program which displays user name and prints its length in java. Ported the same program in Python.
java
python
0 Votos
1 Respuesta
5th Jul 2017, 2:45 PM
suryapoojary
what is happening in this simple attempt to write a code that prints a user-inputted number, multiplied by numbers up to 12
code
error
javascript
1 Voto
1 Respuesta
12th Aug 2018, 2:52 AM
Tyler M
When i write char[5] in my code and i write more than 5 characters it still prints more than 5 char , why is it ?!
char
gets()
operators
1 Voto
2 Respuestas
1st Apr 2020, 7:17 PM
Atena
why whene i type login and after that i type a password that is not in the list python prints successfuly logged in
python3
0 Votos
2 Respuestas
13th Sep 2020, 8:16 PM
MohamedRayen Lamouchi
Type the program receives an integer n, then n receives correct preparation of a program that finds and prints the value of the
c#
1 Voto
2 Respuestas
26th Nov 2016, 10:33 AM
haytham rmmal
Please help me figure out this problem. I enter data for 3 laptops and loop prints data of the last laptop only for 3 times.
c++
oop
0 Votos
2 Respuestas
22nd Sep 2018, 8:05 PM
S.K
How to write a program that asks me to enter an ASCII code value such as 66 and than prints the character having that ASCII code
c++
0 Votos
3 Respuestas
21st Oct 2018, 6:01 AM
Muhlisa
Write a program that takes a command-line argument n and prints the nth harmonic number. Harmonic Number is of the form
na
-1 Voto
1 Respuesta
17th Feb 2022, 8:25 PM
Pravin
i = 0 / while i<5: / i += 1 / if i==3: / print("Skipping 3") continue / print(i). code starts at "1" and prints 5 why?
loops
1 Voto
2 Respuestas
27th Apr 2022, 1:01 PM
Israel Ebiti
My code asks for input and prints out a color and a statement. But input could be anything, Is there a way to limit to colors?
code
codeplayground
0 Votos
4 Respuestas
19th May 2017, 1:17 PM
Sheri
What's wrong with the code.. if I enter n value as 1 or 2, it prints some garbage value.. why it is so ?
cprogramming
0 Votos
1 Respuesta
25th Mar 2021, 3:40 AM
Ashu Williams
how can I fix my code::bloks I can't write a hello world program it prints error that it can't find a file in the lib folder plzz help
c++
0 Votos
5 Respuestas
14th Jun 2016, 8:58 PM
Charliys Que
. Write an entire C program that reads a positive integer entered by an interactive user and then prints out all the positive di
no
-3 Votos
3 Respuestas
3rd Dec 2020, 10:03 AM
Mahi
write an application that inputs the user three subject's mark's ( as integers ) and prints the report which contains the averge of those marks (note : make sure the output as double value)
java
2 Votos
8 Respuestas
13th Mar 2017, 4:06 PM
Khulud Al-slman
Want a way in which the program prints "is not a prime number" only one time and not many times in loop
java
javascript
web
0 Votos
1 Respuesta
15th Sep 2019, 11:49 AM
Aquib Shaikh
Can anyone tell me if the output is 2 it prints 2 two times and if 5 five times but I just want to print once it's about lab num
java
0 Votos
4 Respuestas
3rd May 2020, 8:35 AM
Shivam Rawal
guys I have a question in array. When i run the code it prints "sanji" since the statement is [2] & it is count as 0,1,2. now ++
java
0 Votos
2 Respuestas
5th Oct 2022, 2:58 PM
ivor
Hey, I have to make a program in c sharp that reads a date and from that date prints the day of the week.
classes
functions
methods
-1 Voto
1 Respuesta
14th Dec 2020, 6:05 PM
Stoyan Ivanov
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
Why does printing a reference variable prints D string object if all it does is point to D memory address of D String object
java
reference-types
reference-variables
0 Votos
1 Respuesta
3rd Jul 2018, 8:30 AM
Just_Chuel
How can I write a program in JavaScript that prints a calendar for a month by promoting the user to input both year and month?
javascript
0 Votos
2 Respuestas
1st Jun 2018, 4:21 PM
Lina
hi... i probably didn't understand something but the following code doesn't lead to an error.. it changes the value of PI and prints it.
final
java
0 Votos
2 Respuestas
23rd Feb 2016, 7:56 AM
Orpheus
how to print out The program will accept the total purchase ($) from the user and prints out the total purchase, the discount ($
#money
c++
1 Voto
1 Respuesta
24th Oct 2018, 4:10 AM
Ammar Rahman
What will be the output of the program if the array begins at 65472 and each integer occupies 2 bytes? Why it prints 65496
c
0 Votos
1 Respuesta
31st Jul 2019, 4:01 PM
Shaik Abeedh
Write a program that asks the user to enter an integer N and prints two integers, root and power, such that 1 < power < 6 and...
code
iteration
loop
problem
python
0 Votos
1 Respuesta
8th Oct 2020, 1:10 AM
Ali Rezaei
Write a program that reads an integer value and prints its each digit in words using a tuple as follows: Input: 48261 Output: Fo
#needanswer
-3 Votos
2 Respuestas
12th Oct 2020, 3:21 AM
Ripunjay singh CRqndsGCxu
Trying to write a script that prints values to an if statement. Was working then domething went wront near the end. Thanks in advanced!
c++
0 Votos
1 Respuesta
20th Aug 2016, 3:26 PM
Jack Gruber
does the return statement dépends on thé argument given to thé function? because this function prints none because there was no argument given to it.
python
0 Votos
2 Respuestas
30th Jul 2016, 5:32 PM
Alain Eros Prestige Musoni
Haz una pregunta
Haz una pregunta
Haz una pregunta
Haz una pregunta
< Anterior
1
...
6
7
8
Siguiente >
En tendencia hoy
Javascript
3 Votes
I Had Solve My Own Way But I See Others Method which I had added as Comented code I don't Understand Working Can You explain me?
2 Votes
What i do?in html intermediate level i dont like.
2 Votes
How to get mentor in solo learn.any mentor who response my activity🥹
1 Votes
web application with java, spring boot
1 Votes
Fitting
0 Votes
Why text takes time to load
1 Votes
What is late happening in late binding
1 Votes
Digital currency
1 Votes
I had an issue, I have PRO version, but not unlimited lives.
1 Votes