Kursy
Kursy
Kompilator kodu
Kompilator kodu
Dyskusja
Zespoły
Zaloguj się
Zarejestruj się
Menu
Dyskusje Q&A
Szukaj
Szukaj
Zadaj pytanie
Zadaj pytanie
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 głosów
5 odpowiedzi
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 Głos
1 Odpowiedź
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 Głos
2 odpowiedzi
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 głosów
7 odpowiedzi
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 głosów
2 odpowiedzi
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 Głos
3 odpowiedzi
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 głosów
1 Odpowiedź
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 Głos
3 odpowiedzi
14th Jul 2017, 12:52 PM
RiGeL
How to include \ as part of your string? Example : "martin\" prints martin\\. How do yoo make it print martin\
python
strings
0 głosów
3 odpowiedzi
18th Dec 2016, 9:55 PM
Akshata
: Suppose you know a person who sells mobile phone sims. He takes figure prints of the customers and enters their CNIC numbers
computerscience
0 głosów
2 odpowiedzi
13th Jul 2020, 5:19 AM
Mobeen Akbar
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 głosów
3 odpowiedzi
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 głosów
2 odpowiedzi
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 głosów
6 odpowiedzi
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 głosów
4 odpowiedzi
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 głosów
4 odpowiedzi
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 głosów
3 odpowiedzi
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 Głos
4 odpowiedzi
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 Głos
1 Odpowiedź
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 głosów
2 odpowiedzi
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 głosów
2 odpowiedzi
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 głosów
1 Odpowiedź
3rd Oct 2017, 11:47 AM
vivek kustwar
I wrote a program which displays user name and prints its length in java. Ported the same program in Python.
java
python
0 głosów
1 Odpowiedź
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 Głos
1 Odpowiedź
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 Głos
2 odpowiedzi
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 głosów
2 odpowiedzi
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 Głos
2 odpowiedzi
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 głosów
2 odpowiedzi
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 głosów
3 odpowiedzi
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 Głos
1 Odpowiedź
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 Głos
2 odpowiedzi
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 głosów
4 odpowiedzi
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 głosów
1 Odpowiedź
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 głosów
5 odpowiedzi
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 głosów
3 odpowiedzi
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 głosów
8 odpowiedzi
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 głosów
1 Odpowiedź
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 głosów
4 odpowiedzi
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 głosów
2 odpowiedzi
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 Głos
1 Odpowiedź
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 Głos
4 odpowiedzi
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 głosów
1 Odpowiedź
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 głosów
2 odpowiedzi
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 głosów
2 odpowiedzi
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 Głos
1 Odpowiedź
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 głosów
1 Odpowiedź
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 głosów
1 Odpowiedź
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 głosów
2 odpowiedzi
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 głosów
1 Odpowiedź
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 głosów
2 odpowiedzi
30th Jul 2016, 5:32 PM
Alain Eros Prestige Musoni
Create a function that prints all elements of an array using recursion. Fill the blanks void print(int b[], int size){ if (size>0){ cout<<b[0]<<endl; _______(&b[1],size - 1); } }
c++
output
-1 Głos
3 odpowiedzi
22nd Aug 2016, 2:16 PM
Soutik
Zadaj pytanie
Zadaj pytanie
Zadaj pytanie
Zadaj pytanie
< Do tyłu
1
...
6
7
8
Dalej >
Popularne dzisiaj
Help please?
4 Votes
How to get better with problem-solving and programming
1 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
Game development
0 Votes
Write a program to find the strings are in isogram or not
0 Votes
Ruby programming?
3 Votes