Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
how come the other var text is looped? for (i=1, text=""; i <=8; i++) { text=hello; document.write(i+text+"<br/>"); }
javascript
loops
1 Vote
2 Answers
26th Sep 2016, 3:22 PM
Abdoulaye Seck
#include <stdio.h> #include<string.h> int main() { char a[60]; char b[60]; char c[]="is the friend of"; char d[]; printf ("The f
pleasehelp
0 Votes
2 Answers
18th Feb 2022, 5:23 AM
Bong Rush Gaming YT
why output llo? could explain? #include <iostream> using namespace std; int main() { char *pString="hello"; pString+=2; cout<<pString; }
c++
1 Vote
2 Answers
23rd Aug 2016, 10:48 AM
Lekhraj Singh
#include <stdio.h> int main() { int k,sum ; printf("number of terms in series = %d", k); scanf("%d",&k); sum = k*(k-1)/2; print
c
1 Vote
2 Answers
12th Aug 2019, 3:44 AM
Rahul Sikarwar
Fill in the blanks to make the image circled and blurred with 30% sepia applied. img { -radius: 50%; filter: (30%
and
blanks
blurred
circled
fill
image
in
make
the
to
-1 Vote
2 Answers
20th Nov 2019, 1:18 AM
Samir Bhandari
In the code: for(x=1; x<=5; x++) { system.out.printIn(x); } ++x and x++ has no difference in the output ... why?
java
loops
-1 Vote
3 Answers
13th Mar 2017, 8:51 AM
Karuna Kukreja
Is this the correct program?? If so why it is not working?? #include<iostream.h> #include<conio.h> void main() { clrscr(); cout<<"hello world! "; getch(); }
c++
0 Votes
6 Answers
11th Jul 2016, 3:47 PM
sherry
Fill in the blanks so that the first line of the paragraph uses the newly defined font called "test". { font-family: "
css
css3
-8 Votes
4 Answers
24th Jun 2020, 5:59 PM
Snehal Mahabare
p.serif { font-family: "Times New Roman", Times, serif; } --why there is values separated with comma after the font name?
css
font
2 Votes
2 Answers
9th Sep 2017, 12:44 PM
Abhishek Mukherjee
Fill in the blanks to shift the element 10px to the right from its position. .box { : ; : 10px; }
solve
0 Votes
2 Answers
21st Nov 2022, 7:31 PM
Bittu kumar
I'm trying to check if there was a click on a special button or on the document itself by the: if (... || ...) { }
jquery
js
2 Votes
5 Answers
6th Aug 2020, 12:29 PM
Pavel Durov
Can somebody tell me what will this program give,i.e., what is its result?? { clrscr(); int a=5 ,count=0; cout<<"enter
c++
loops
variables
whileloop
0 Votes
3 Answers
27th Sep 2016, 5:59 PM
Devansh Kaushik
#include <iostream> using namespace std; int main() { cout<<(0==0); return 0; } why the output is 1??
c++
0 Votes
2 Answers
18th Sep 2016, 3:53 PM
Krishna Vashista
Can I do this instead: #include "std_lib_facilities.h" int main() { cout << "Hello, World!\n"; return 0; }
c++
0 Votes
2 Answers
5th Aug 2016, 3:06 PM
jigoku_tenshi
I don't understand how to comes following output???could anyone explain? #include <iostream> using namespace std; int x(int &a,int &b) { a=3; b=4; return a+b; } int main() { int a=2; int b=7; int c=x(a,a); cout <<a<<endl<<b<<endl<<c; } output:- 4 7 8
c++
1 Vote
2 Answers
24th Aug 2016, 6:20 AM
Lekhraj Singh
Pblic class program { Public static void main .string[ ] args ){ for( x=1 ; x<=100 ; x++ ){ if( x%3=0 && x%4=0)
int
3 Votes
3 Answers
17th Feb 2018, 12:58 AM
YASH RAJ
Solve it if you are genuis!!!! What is the output of this code? #include <iostream> using namespace std; int main(){ for(int class=0;class<5;class++) { cout<<class<<endl; } return 0;}
c++
1 Vote
9 Answers
8th Sep 2016, 11:05 AM
Aklil Asregid
The number of values between braces { } must not exceed the number of the elements. What if the No of elements less
arrays
0 Votes
4 Answers
21st Jun 2019, 12:09 AM
Faisal Alghamdi
public class comparestrings{ public static void main (String[] args) { String style = "Bold"; String style2 = "B
5
-1 Vote
1 Answer
5th Jun 2021, 2:39 PM
عباس جلاوي
in the following why the code num=num+1;can't be applied just after while loop in the beginning of curly braces? #include <iostream> using namespace std; int main() { int num = 1; while (num < 6) { cout << "Number: " << num << endl; num = num + 1; } return 0; }
c++
loops
0 Votes
7 Answers
22nd Sep 2016, 2:48 PM
Prabhat Chandra Dwivedi
#include <stdio.h> int main() { int a, b; float salary = 56.23; char letter = 'Z'; a = 8; b = 34; int c
c
-2 Votes
5 Answers
30th May 2021, 4:29 PM
Manash Anand
data= { 'red' :1, 'blue' :2, 'green' :3} def makedict(** kwargs): return kwarge data = makedict( red = 1; blue =2; green =3;)
python
0 Votes
3 Answers
5th Aug 2020, 5:07 PM
Starcodelab
import java.util.Scanner; public class H2A { /** * @param args the command line arguments */ public static
java
-1 Vote
1 Answer
10th Sep 2020, 7:05 PM
rachel mensah
var arr = document. getElementsByTagName(" img "); for(var x=0; x<arr. ; x++) { arr[x]. = "demo.jpg"; }
dom
javascript
-6 Votes
1 Answer
24th Oct 2017, 7:28 AM
vignesh rajasekaran
#include <iostream> #include <string> using namespace std; int main() { char *p= "this"; p+=2; char c= 1 + *p; cout <<c;
c++
code
0 Votes
4 Answers
3rd Jul 2017, 5:09 PM
Kushagra Agarwal
#include<stdio.h> int main() { int i=-3, j=2, k=0, m; m = ++i || ++j && ++k; printf("%d, %d, %d, %d\n", i, j, k, m);
c
0 Votes
4 Answers
4th Jun 2020, 3:25 PM
Sourabh Malviya
int[ ][ ] myArr = { {1, 2, 3}, {4}, {5, 6, 7} }; myArr[0][2] = 42; can't get this declaration?
arrays
0 Votes
2 Answers
25th Sep 2018, 2:58 PM
yoga
#include <iostream> using namespace std; int main() { cout<< "Alcacer 2 goals, CR7 1 goal"; cout<< "CR7 is old like Chi
c++
variables
1 Vote
3 Answers
8th Nov 2017, 10:27 AM
EGENTI PRECIOUS C.
I tried this code : int num = 1; int number; while (num <= 5) { cin >> number; num++; }. But it showed no output
loops
0 Votes
7 Answers
20th Jul 2018, 3:44 PM
Abhinav Anand
{ int a = 100; a = 50; cout << a; return 0; } Why the output is 50 as the value of a is 100 & 50
c++
variables
0 Votes
7 Answers
17th Aug 2018, 7:50 AM
Manish kumar
Can somebody help me with Match Results the course is go my code: func main() { results := []string{"w", "l", "w", "d", "w",
code
course
go
have
help
i
is
my
please
the
0 Votes
2 Answers
20th Jul 2021, 4:41 PM
Michael smith
what if we put return 1 in main function eg int main () { • • • • • • • • return 1; }
c++
1 Vote
6 Answers
21st Jun 2016, 8:53 AM
Tushar Chetan
Complete this code so that the Student interface’s contract is fulfilled and the code will compile. interface Student { id: n
angular
0 Votes
2 Answers
25th Sep 2020, 3:33 PM
Anas Emad
How does func fib(n: Int) -> Int { return n < 2 ? n : (fib(n-1) + fib(n-2)) } print(fib(3)) have an output of 2
functions
swift
3 Votes
2 Answers
30th Apr 2018, 8:41 PM
Aarnav
#include <iostream> using namespace std; int main() { int num = 1; int number; int total = 0; while (num <= 5)
loops
-1 Vote
2 Answers
25th Oct 2020, 1:43 PM
Sada
{ int x=5,y=9,u=30; int r; r= ++x - y-=3 + u*=2 +u&y; cout <<r <<endl; friends tell me what is error and why???
.
1 Vote
2 Answers
4th Feb 2019, 5:49 PM
User1
what is the size of operate? assume size of (int)=2 #include <iostream. h> using namespace std ; class test { int x_ ; int y_; } ; int main() { test t ; court<<size of (t)<<" ; }
c++
-1 Vote
2 Answers
12th Aug 2016, 8:37 AM
Santhosha S R
int [ ] myArr = {6, 42, 3, 7}; int sum=0; for(int x=0; x<myArr.length; x++) { sum += myArr[x]; } System.out.println(sum)
arrays
java
0 Votes
3 Answers
20th Mar 2017, 4:39 AM
naveen roshan
int[ ][ ] myArr = { {1, 2, 3}, {4}, {5, 6, 7} }; myArr[0][2] = 42; int x = myArr[1][0]; sop(x);
arrays
java
0 Votes
3 Answers
16th Dec 2016, 4:31 AM
Tanaji Kolekar
void main() { int a=3,b=4,c=6; printf("℅d ℅d ℅d"); getch(); } The output of this program is 6 4 3 why? can anyone explain this?
c
java
0 Votes
5 Answers
19th Aug 2016, 6:09 PM
sree lekha
Why i have to write this class MyClass { public static void main(String[ ] args) in a java program
@java
-1 Vote
2 Answers
19th Apr 2022, 10:29 AM
new use
int arr[] = {11, 35, 62, 555, 989}; int sum = 0; for (int x = 0; x < 5; x++) { sum += arr[x]; } cout << sum << endl
arrays
5 Votes
8 Answers
27th Nov 2016, 4:31 PM
Bhairesh M
How can the compiler know where the while block is ending.In C we have { } which define the scope of the variable.
loops
python
3 Votes
2 Answers
4th Jan 2017, 2:05 AM
Piplup Xi
how do I get an output of '2' in the program below? int main() { int arr[] = { 3, 1, 2, 5 }; count<<arr[ ]; what do I need to insert in this program to give me an output of '2' ? Thanks
c++
0 Votes
3 Answers
27th Sep 2016, 4:59 PM
Ibim
for(;;) { int i=0; if(i==1){System.out.println(i); break;} ++i;} Will this code run for infinite times? If yes then how?
for
loops
1 Vote
1 Answer
13th Aug 2017, 7:11 AM
Paul Gaikwad
Is this a valid way to write the switch statement? var day; switch (day=3) { case 1: ...
javascript
switch
-1 Vote
2 Answers
7th Nov 2016, 9:28 AM
Stoobius
Consider the following java class definition: public class time { private int second; // from 1 to 60
java
-3 Votes
1 Answer
22nd Dec 2016, 5:38 AM
victor
#include <iostream> using namespace std; void test(int*, int*); int main() { int a = 5, b = 5; cout << "Before changing:" <
c++
dev
-1 Vote
2 Answers
5th Jul 2022, 1:34 PM
Kathleen Joy Uy
#include <iostream> using namespace std; int main() { int i = 3; i = ++i + i++; cout<<i; return 0; }
c++
0 Votes
3 Answers
8th Aug 2016, 8:49 PM
Michael Murandu
int main() { int num = 1; int number; int total = 0; while (num <= 5) { cin >> number; total += number; num++; } cout << total << endl; return 0; } i neeed a very simple discussion please about the loop i don't understand anything
c++
1 Vote
3 Answers
27th Sep 2016, 4:59 PM
Retag Tarek
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
11
12
13
14
Next >
Hot today
SQL
3 Votes
HTML/CSS questions
0 Votes
IMAGE
0 Votes
Html
1 Votes
How can I continue with my goal if I lost all my lives?
0 Votes
How to learn css and html
0 Votes
Certificate Problem
0 Votes
Find courses
0 Votes
member initializer list : order of evaluation
0 Votes
Why rare programming languages disappeared in sololearn?
1 Votes