Cours
Cours
Compilateur de code
Compilateur de code
Discuter
Équipes
Se connecter
S'inscrire
Menu
Discussions Q&R
Chercher
Chercher
Poser une question
Poser une question
window.onload = function() { alert("Comment your quiz score and percentage i dare you wont score upto 100%😁lol") const quizDa
javascript
0 Vote
5 Réponses
20th May 2023, 5:28 AM
KIDS ALL KIDS
int x= 0; while (x<= 10) { x+=2; cout<<x; } How many times will the cycle be performed?
c++
cpp
output
programming
0 Vote
4 Réponses
10th May 2020, 10:29 AM
Mihaela Trencheska
function main() { var amount = parseFloat(readLine(), 10); var rate = parseFloat(readLine(), 10); console.l
javascript
0 Vote
1 Réponse
5th Aug 2022, 6:44 PM
Umar Ado Isyaku
//Called when application is started. function OnStart() { //Create the main layout. layMain = app.CreateLayout( "Linear
javascript
python
0 Vote
2 Réponses
24th May 2018, 3:37 AM
Muh Yusril
$(document).ready(function() { //initialize all variables; var damagedone; var comment; var movecount; var attack
$(document).ready(functi
-3 Votes
1 Réponse
17th Oct 2020, 2:58 PM
Rishabh
Hi! can anyone help me to write this simple code: #include <iostream> using namespace std; int main() { if (7 > 4) { cout << "Yes"; } return 0; } into Microsoft Visual Studio 2015?
c++
if-statements
0 Vote
4 Réponses
21st Jul 2016, 10:15 AM
David Kela
Code a rule for all the paragraph elements that share the class blog { text-align: center; }
;center;
<p>
blog
tex-align
0 Vote
3 Réponses
8th May 2024, 5:26 PM
charles mccarthhy
What happens if you leave a part of an array blank? Example: int myArray [3] = { 0, 2, };
arrays
c++
3 Votes
4 Réponses
28th May 2018, 8:41 PM
Jeremy
public class Carseat { static int state = 3; static int idle=1; static int belted=2; static int unbelted=3; public static vo
switch
0 Vote
6 Réponses
20th Oct 2019, 1:03 PM
Sinthani Ngulube
#include <stdio.h> int main() { int x=4,y,z; y=--x; z=x--; printf("%d",x); return 0; } output value and why ??
c
p
programming
0 Vote
2 Réponses
17th Aug 2021, 4:42 PM
PARTHA SARATHI DAS
what is difference between: public class Animals { ..... and Animal dog = new Animal();
in
java
2 Votes
1 Réponse
15th Sep 2017, 6:02 AM
Prathamesh Dhuri
#include <iostream> int main(int argc, char **argv) { std::cout << 25u - 50; return 0; }
sololearners
0 Vote
2 Réponses
21st Jul 2020, 1:17 PM
i Ebenezer
var s = document. getElementsByTagName(" "); (var x=0; x<s.length;x++) { s[ ].style.backgroundColor = "#33E
dom
javascript
0 Vote
2 Réponses
14th Oct 2016, 2:41 AM
Rita Kaye Gabutan
What is the output of this code? int x=3,y=3; do { X-=3; y=y-x; } while(false); System.out.print(y-x)
java
-1 Vote
2 Réponses
9th Jan 2020, 8:54 AM
Nihaal Khan
#include <stdio.h> int main() { int a=4; printf ("the value of a is %d,a"); return 0; }
include
0 Vote
2 Réponses
8th Apr 2023, 6:17 AM
Suyash Agnihotri
#include <stdio.h> #include<conio.h> int main() { int a,b; printf("Enter two number"); scanf("%d%d, &a,&b"); printf("The value o
kapil
-4 Votes
4 Réponses
31st Oct 2020, 5:22 AM
kapil dahiya
int num = 1; int number; while (num <= 5) { cin >> number; num++; }
simple
0 Vote
2 Réponses
22nd Jun 2018, 9:28 AM
Superman Batman
let total = 0, count = 1; while (count <= 10) { total += count; count += 1; } console.log(total);
javascript
1 Vote
3 Réponses
8th Nov 2020, 6:51 AM
Kayode Kolade Christopher
what will be output?? #include<stdio.h> main() { int arr [10]={1,2,3,4,5,6,7,8,9,10}; int *p,*q; q=arr/2; p=arr*2; printf("%d %d",*p,*q); }
c
0 Vote
4 Réponses
29th Jun 2016, 8:38 PM
BARUN SARRAF
What is the output of this code? <div style="width:200px"></div> <script> $(function() { $("div").css("padding", "5px"); ale
jquery
0 Vote
2 Réponses
9th Mar 2017, 8:03 AM
Goli poornachandu
#include <iostream> using namespace std; int main() { int i=2; i=i++; cout<<"Result : " <<i++ + i++; return 0;}
c
c++
java
math
problem
5 Votes
2 Réponses
4th May 2017, 10:32 AM
P∆WAN M∆URY∆
#include <stdio.h> #define prod(i,j) i*j int main() { int x=3,y=4; printf(" %d \n",prod(x+1,y)); } output :7
c
define
preprocessor
0 Vote
2 Réponses
21st Nov 2019, 6:03 PM
mohamed Issati
What is the output of the following code? function magic(...nums) { let sum = 0; nums.filter(n => n % 2 == 0).map(el => sum+
javascript
rest-parameters
0 Vote
3 Réponses
15th Oct 2019, 11:09 AM
amal mohammed
fill in the blanks to break out of the loop after the number 5 is printed to the screen. for ($i=0;$i<=50;$i++) { echo $i; if($i
break
-6 Votes
4 Réponses
28th Jun 2018, 8:25 PM
Erick Peter Athuman
Why '\n" is used after hello world in given code?#include <stdio.h> int main() { printf("Hello, World!\n"); return 0; }
c
0 Vote
3 Réponses
18th Feb 2021, 8:54 AM
Chahit Bhardwaj
#include <iostream> using namespace std; int main() { int x=10; int y=x+++x+++x; cout<<y; return 0; }
c++
1 Vote
2 Réponses
25th Feb 2017, 2:40 PM
kumar Saurav
what is the output put of the following program? int main () { int x=5; static int y =x; prinf("%d", y) ; }
5
error
garbage
3 Votes
4 Réponses
10th Sep 2019, 5:17 PM
Vaibhav Karma
I don"t understand this code at all help { I am a beginner }
html
0 Vote
2 Réponses
4th Jul 2017, 12:44 PM
sushant
x++ will increase a value sometimes. Please help me learn all of the times when it won't change x. This is my understanding so far: x=4; for { y=x++; } document.write(y) //returns 4 x=4; for { y=x++; y+=2; return y; } //returns 7 x++/2==? ++x/2=2.5
interations
javascript
loops
3 Votes
6 Réponses
9th Oct 2016, 5:31 PM
ixnayOntheAmScray
for (doublCe y = .1; y != 1.0; y += .1) { printf("%f\n", y); }
c++
-1 Vote
1 Réponse
5th Dec 2021, 8:47 AM
Christine Jane Dulay
#include <stdio.h> int main() { int x=12 , y=15 , z=20; if(x>y<z) printf ("red"); else printf ("green"); return 0; }
c
language
0 Vote
5 Réponses
5th May 2021, 3:15 PM
Ritik Kumar
#include<iostream> using namespace std; int main () { int a,b; int sum=a+b; cout<<"enter a number"; cin>>a; cout<<"enter another number"; cin b; cout<<" sum is"<<sum<<endl; return 0; }
c++
variables
1 Vote
17 Réponses
20th Jun 2016, 7:19 AM
Amrisha singh bhadoria
#include <stdio.h> struct customer { int phone_no; char name[80]; int balance; }; void accept(struct customer[], in
find
results
the
0 Vote
1 Réponse
5th Mar 2022, 6:43 AM
Letwin Rgwodzi
my code was for (f=1;f<=num1&&f<=num2;f++) { if (num1%f==0&&num2%f==0) cout<<"the gcd is"<<f; how can i printed the last val. f
c++
0 Vote
6 Réponses
22nd Oct 2016, 12:28 AM
KG Feignh
int arr[] = {1, 2, 3, 4, 5}; (int x = 0; x < 5; x++) { printf("%d", [x]); }
array
6 Votes
1 Réponse
17th Apr 2022, 4:14 PM
Arafat Rahon
What difference. Function y (x) { var y =x } and. function y (x){ this.x =x }
javascript
objects
1 Vote
3 Réponses
18th Oct 2017, 7:08 AM
Ikbal Mulyadi
{ For Loop } Why it is so tricky and confusing. Can some one give a simple explanation.
for
loops
0 Vote
3 Réponses
29th Mar 2018, 7:21 PM
Varshilov Nikolay
Give the ouput and explain #include<iostream.h> void main() { int a =32, *ptr=&a; char ch='A' , &cho=ch; cho+=a; *ptr+=ch; cout<<a<<" "<<ch<<endl; }
c++
cout
void
2 Votes
5 Réponses
18th Jul 2016, 12:47 PM
Mahima Rajvir Singh
#include <iostream> #include<cctype> #include<string> using namespace std; void PersonalDetails() { string name1,name2; int age;
c++
help
in
is
it
me
please
strings
0 Vote
1 Réponse
25th Jun 2017, 4:20 PM
Ahaa mark
dictionary can hold dictionarys? just like json on js. f = {"foo": { "bar":something}}
dictionaries
python
1 Vote
1 Réponse
7th Feb 2016, 5:57 PM
exi
#include<stdio.h> int main() { float i; double j; i=22/7; j=22/7; printf("%f\n%.2f", i,j); return 0; }
c
language
-1 Vote
1 Réponse
26th Aug 2021, 9:07 PM
Ritik Kumar
#include <stdio.h> //function declaration int factorial(int num); int main() { int x = 5; printf("The factorial o
pleasehelp
0 Vote
2 Réponses
2nd May 2019, 6:57 AM
Rahul Jaiswal
Is this Wrong - if ( int = 2 ) { cout <<"bla bla bla bla \n"; }
c++
cpp
1 Vote
4 Réponses
23rd Dec 2017, 11:17 AM
Aditya Gupta
for(int i = 1; i <= 5; i++) { System.out.print (i + " "); int k = 6; int sum =
code
1 Vote
4 Réponses
10th Mar 2021, 7:10 AM
Monir Hossen
int[ ][ ] myArr = { {1, 2, 3}, {4}, {5, 6, 7} }; myArr[0][2] = 42; int x = myArr[1][0]; // 4
arrays
java
2 Votes
9 Réponses
5th Jul 2017, 12:49 PM
Sheevika
Want to add a tab/new page when clicked. (comboBox1.SelectedItem == "Greetings") { comboBox2.Items.Add("Hello"); }
add
c#
combobox
items
page
tab
1 Vote
6 Réponses
16th Mar 2017, 11:11 PM
DoubleVermine
Does all the java code have to be within public static void main(String[ ] args) { )
java
main
method
0 Vote
2 Réponses
12th Jun 2019, 9:45 PM
Shaurya Sen
for (int x = 0 x <= x += ) { cout << << endl; }
c++
loops
0 Vote
1 Réponse
25th Jun 2018, 9:41 PM
Windell
import java.util.Scanner; public class Program { //your code goes here public static void bot(){ Scanner sc= new Scanne
kipkiruimutai
0 Vote
3 Réponses
14th Jan 2023, 7:36 AM
KIPKIRUI Kelvin Mutai
What is the final value of y? //Program #include<iostream> using namespace std; int main() { int y; for(y=2;y<=6;y+=2) cout<<y; }
c++
2 Votes
5 Réponses
14th Sep 2016, 2:14 PM
Venus
Poser une question
Poser une question
Poser une question
Poser une question
< Précédent
1
...
9
10
11
...
14
Suivant >
Aujourd'hui en vedette
Print("hello ,world!"[7:13][2])
0 Votes
How can i improve my code
1 Votes
How to Start Programming ?
1 Votes
time complexity
1 Votes
Would it be possible to store all your Python files in the same directory, and achieve data persistence?
0 Votes
IS C++ EASY?
0 Votes
Do you think I can miss my streak for Christmas Day
1 Votes
Noob game
1 Votes
???
1 Votes
Using JavaScript with an External File
0 Votes