Mihail
Am unable to,want to know how
printf("enter x and y:"); scanf("%d %d", &x, &y);
Mihail
Could you please give me an example?
for(int i = 0; i < *lenght of array*; i++){ //Check if array[i] is divisible by 5 here }
TrUstEd
printf("enter x and y:"); scanf("%d %d", &x, &y);
What about the "if" and "else" ?
Mihail
What about the "if" and "else" ?
Well you could put them in a function
Mihail
If (a[0]%!==0&&a[0]%5!==0)
if (a[0] % 5 == 0) Will be true if it is divisible by 5
Sara
What do you mean?
I wont to check array which {1,2} so i have to put 2 loops in the program
Sara
That’s right?
Sara
Or one is enough
Mihail
It'll go through every element and check it
Sara
Yes
Thank you very much
Mihail
You'd need two nested for loops if you need a 2-dimensional array
Sara
Mihail
Don't check the 0 element
Mihail
Check the i element
Shekhar
I'm c++ learner. So hope this channel beneficial to me.....
Mihail
Because your code will just go check the first one 7 times
Sara
like this?
Mihail
like this?
Yes but !=
Mihail
Not !==
Mihail
Not !==
There's no such thing in cpp
Sara
Yes but !=
Thanks it’s run
Sara
But we learned double equity == for checking why here we put single equity?
Mihail
Not sure why
Mihail
But that's how it is
Mihail
== for equals to != for not equals to
Jey
Anybody with the book Accelerated C++. The latest edition.
BinaryByter
i even got a pdf copy of it
BinaryByter
but I won't share it
Jey
but I won't share it
Kindly, dm it to me.
BinaryByter
no
Jey
no
Okay.
Sara
If i wont to print number or some output if there is to element satisfied the condition how can i do this work?
Anonymous
Hi
JimXR
Hey
Anonymous
I was restricted but now out
Anonymous
Happy
Anonymous
Does JavaScript uses c++ in background??
Anonymous
Hey
Hello
Anonymous
🤦‍♂️
What happened??
BinaryByter
you asked a question
Anonymous
Is questioning not allowed
BinaryByter
you are banned from asking questions
Anonymous
Why??
BinaryByter
no for real, read about what javascript is
BinaryByter
because there is no "javascript"
BinaryByter
there are many different interpreters of it
BinaryByter
and most of them ARE written in C/C++
Anonymous
Okay
Anonymous
That's what I wanted
BinaryByter
which is why your question is very malformed
Ariana
why not use python to run js
BinaryByter
BinaryByter
wait
BinaryByter
no I know a shitton of people who'd say that
BinaryByter
i might not know them anymore, soon
Ariana
i wonder how slow will it be
BinaryByter
i wonder how slow will it be
slower than me in PE lessons
Anonymous
Hello friends! Good lang c++!
BinaryByter
i invented that language
Shivam
BinaryByter
fuck I fed the trolls
Shivam
Weird flex
Shivam
But ok
Anonymous
Anonymous
does anyone want to find out what my C code is saying?
Anonymous
on an intel i7
Anonymous
gcc -O0 version 7.3.1
Mihail
the code is saying something?
Shivam
😱