Courses
Courses
Code Compiler
Code Compiler
Discuss
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
int result = 0; for (int i = 0; i < 5; i++) { if (i == 3) { result += 10; } else { result += i; } }
explain
1 Vote
2 Answers
11th Sep 2016, 4:16 AM
Syed Maqsood
What is the output of this code? static int Test(out int x, int y=4) { x = 6; return x * y; } static void Main(string[] args
code?
int
is
of
output
static
test(out
the
this
what
0 Votes
2 Answers
19th Sep 2018, 1:39 AM
Lavetta Lewis
Why do we set this.color = c and then ignore it in the main class?
getter
java
setter
0 Votes
3 Answers
22nd Apr 2019, 5:08 PM
Mike Smith
What's the point of "arr.insert(index, value)", when "arr[index] = value" does the same thing?
arrays
insert
methods
ruby
0 Votes
4 Answers
6th Nov 2016, 10:02 PM
Geoff Colman
Нужно помощь с программой
=
a*b/(c+d)-a
f
-2 Votes
2 Answers
19th Jun 2020, 6:22 PM
юля соткина
Can variables be manipulated within a print statement? (Python) Like: x = 3 print(x *=3)
operators
python
-1 Vote
4 Answers
1st May 2020, 11:08 AM
Megha Suresh
public class Program { public static void main(String[] args) { int[ ][ ] myArr = { {1, 2, 3}, {4}, {5, 6, 7} }; myArr[0][2] = 42; int x = myArr[1][1]; System.out.println(x); } } why it does not give any garbage value as output?
arrays
java
-1 Vote
4 Answers
9th Nov 2016, 6:21 PM
Sandesh
Trying to link my image source but is not working
<img
=
e//images>
src
0 Votes
2 Answers
21st Jun 2024, 11:10 PM
Vicky ice comedy
def addition(): first= int(input('what is your first number')) second = int(input('What is your second number?'))
q
1 Vote
3 Answers
19th Oct 2020, 12:37 PM
Ar Kar Moe
Why does this code only print true when i = 4, 9, 25, or 49?
python
python3
0 Votes
2 Answers
26th Aug 2019, 1:44 AM
Evan
Complete the code for the form. <form> <label for = "_______"> Name : </label> <input type="text" ________="name"> <input __
html#form
1 Vote
5 Answers
27th Aug 2023, 4:17 PM
Souvik Hazra
SELECT DISTINCT * FROM customers WHERE city = 'Newyork'; is it possible?? if there are multiple city then show only once.
distinct
sql
where
2 Votes
14 Answers
9th Oct 2016, 6:53 AM
Morshed Islam
Sum = 1 + 12 + 123 + 1234 + 12345 + … + 1234567891011…n how to sum%10007 mod answer
algorithm
formula
-3 Votes
11 Answers
19th Jul 2017, 12:12 PM
Ilyos Yuldoshev
How to remove the duplicate characters from the following String using Java toIndex()?String str = “gdjennrfvsbsbdbsb”;
chararray
java
0 Votes
5 Answers
9th May 2020, 8:40 AM
Ramya T
What is the difference between these in php
.=
=
$var
and
2 Votes
2 Answers
18th Nov 2020, 9:35 AM
Balogun Soliu
How do I allocate memory to the following function pointer: void (*ptr)(int*) = factorial;?
c
2 Votes
1 Answer
24th May 2022, 7:39 PM
attackhelicopter boi
int result =0; for (int i = 0;i<5;i++){ if(i==3){ result+=10; }else{ result+=i; } } system.out.println(result);
array
java
0 Votes
2 Answers
12th Apr 2018, 7:47 PM
Ahsan Designer
I can't understand that $a = count("123","45"); echo $a; . Output: 1. Why?Please explain me more.
count()
php
1 Vote
2 Answers
23rd Jun 2019, 5:49 PM
Sanjar Sobirjonov
var n = 5 ; alert(n-=2) = 3 or alert(n-2)= 3 . When would anyone use ( -=2 ) when ( n-2 ) is straight forward ? 🤔🤔🤔🤔
script
0 Votes
2 Answers
29th Jun 2021, 11:32 AM
Theresco
#include <iostream> using namespace std; //Compiler version g++ 6.3.0 int main() { int myVariable = 10; "Cout" << "myvari
print
0 Votes
7 Answers
26th Aug 2020, 11:11 AM
JASHANPREET SINGH
What do the square brackets mean in the following: word = words[counter]
for
loops
1 Vote
2 Answers
23rd May 2017, 7:09 PM
Devron Tombacco
Please help me complete this program to enable me get an output of y int main() { int x = 9; int y = x % 5; x= ; cout<<x*y ;
c++
1 Vote
4 Answers
27th Sep 2016, 5:16 PM
Ibim
What is the output of this code? var n1; n1 = true; Console.WriteLine(n1);
c#
variables
0 Votes
1 Answer
21st Aug 2018, 10:42 AM
Morapedi Khutwane
TypeError: undefined is not an object (evaluating 'array[sq] = p+r') at Line: 59
array
bug
js
0 Votes
3 Answers
27th Oct 2019, 6:54 PM
Bright Lin
How can we take multiple inputs in java ? Can we do this "Scanner a,b,c = new Scanner(System.in);
how
in
inputs
java
multiple
take
to
1 Vote
5 Answers
27th Aug 2019, 8:12 AM
Zeeshan Ahmad
Can some one help me to understand this PHP question please? $result = 0; and $i = 0; how can their addition be 10???
for
function-arguments
functions
php
0 Votes
1 Answer
4th Nov 2016, 3:56 PM
Haikal Jama Shaywal
a program to convert temperature in degrees Fahrenheit to degrees Celsius. The equation is: Celsius = 5.0/9.0(Fahrenheit –32.0)
c++
main
0 Votes
6 Answers
28th Dec 2020, 10:57 PM
Izzat Idham
why do you convert to a double a string value = "77" instead of an int?
c#
input
type-conversion
0 Votes
7 Answers
15th Aug 2016, 4:03 AM
Lezly Rodríguez D
var x = 0; for (; x <= ; x += ) { document.write(x); }
#javascript
0 Votes
3 Answers
3rd Nov 2020, 12:19 PM
SANDHIYA S
Python - Why is the outer bracket not printed in a = ([{}]) ?
brackets
python
0 Votes
1 Answer
29th Oct 2020, 8:27 PM
Solus
Int x[2][3] = {{1,2,3},{4,5,6}}; I want to print all the numbers included in 2D array how?
arrays
c++
1 Vote
5 Answers
9th Dec 2018, 2:16 PM
Saad Saleem
a = [i for i in range(8)] print(a) for i in a: a.remove(i) print(i) print (sum(a))
python
python3
1 Vote
3 Answers
17th Jun 2019, 7:28 AM
Praveen E
In reverse a string code in java, what is the meaning of this line? String rev = ""; Please explain.
java
2 Votes
5 Answers
23rd Mar 2021, 12:11 PM
RAGUL
find all possible roots of an equation of the form ax + by + cz = d
python3
0 Votes
8 Answers
31st Oct 2017, 4:29 PM
Daniyar
Which the value of the target attribute make the link open a new tab or new window
_blank
=
=
=
current
new
pag
page_parent
page_self
parent
target
-1 Vote
1 Answer
6th Aug 2022, 2:32 PM
Vivek
num = int(input()) def fibonacci(n): if n==1: return 0 elif n==2: return 1 else: return fibonacci (n-1) + fibonacci (
exsercise
fibonacci
python
series
1 Vote
7 Answers
23rd Dec 2020, 1:07 PM
ARNAV SINGH
def add_numbers(x, y): total = x + y return total print("This won't be printed") print(add_numbers(4, 5))
functions
0 Votes
3 Answers
31st Jul 2019, 4:01 AM
Dhyey Badheka
how do i make my textarea transparent
"text"/>
<input
=
type
1 Vote
2 Answers
10th May 2020, 1:25 PM
Posi
x = 1 while x < 10: if x%2 == 0: print(str(x) + " is even") else: print(str(x) + " is odd") elif:
help
3 Votes
7 Answers
12th Aug 2020, 2:27 AM
Hacker Tamil Tamila
What os the use of i = i+1 in this code?
python3
0 Votes
2 Answers
13th Dec 2017, 5:26 PM
Arjun Mahanty
#include <stdio.h> int main() { int x = 5; if (x<1); {printf("Hello");} }
help
0 Votes
2 Answers
15th Dec 2019, 2:33 PM
Avantika Nagrale
What is the output of this code? for (var i = 5; i <9; i++) {document.write (9-i);}
code
coding
developer
javascript
js
variables
6 Votes
2 Answers
12th Aug 2017, 12:24 PM
Tahir Usman
What is the target from using increment & decrement processes?
)
++b;document.write(
=
=
0;
a
a
b=10;var
vara
0 Votes
3 Answers
30th May 2020, 9:59 AM
Sohaila Mostafa
int x = 12 ; int y= ++x ; cout << x ; . In this what is the output
answer
0 Votes
10 Answers
20th Jun 2018, 4:29 PM
Superman Batman
How can I remove new lines and tab space from this string at once? s = 'This\nis\PYthon\n\tlanguage'
escape_sequence
newline
python
split
strings
tab
2 Votes
6 Answers
13th Sep 2017, 9:32 AM
SobiX
what does this lambda do in python sort. Assume a=[3,2,0,1] b=[1,0,3,2] b.sort(key = lambda x:a[x]) print(b) #res=2310
python
sort
1 Vote
4 Answers
17th May 2018, 3:04 AM
Deepak Jayaprakash
Python - Given a,b, *c, d = 1,2,3 how come c is equal to an empty list?
python
2 Votes
2 Answers
8th Nov 2020, 12:58 AM
Solus
Why the output is "Your grade is = 67" when i declare grade as 'int'?
java
2 Votes
2 Answers
15th Dec 2018, 8:08 AM
Nitin Gutte
#include <stdio.h> int main () { char s1[20]="java"; printf ("progming = %s",s1); printf ("\nprogming=%s",strrev(s1)); retur
include<stdio.h>int
ma
-1 Vote
5 Answers
10th May 2021, 3:35 AM
Deep patel
Getting Invalid syntax for the line4: bill = 0 What is wrong with the code?
error
python3
variables
1 Vote
2 Answers
4th Jul 2022, 3:40 AM
Ashok Ighe
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
24
25
26
...
38
Next >
Hot today
About android&apple compatibility
2 Votes
Gimme some advice
1 Votes
Doubt in C
1 Votes
Php?
0 Votes
how to create my own html page
0 Votes
React js
0 Votes
Why am I not able to message anyone?
0 Votes
Data science
2 Votes
let mal = ["fever", "headache", "sleepless", "dizi"]; let act = ["fever", "headache", "sleepless"]; if(mal == act){ alert("s
0 Votes
Hi how to make game
1 Votes