Lucía
are voice messages not allowed?
Michael
What is telegram made of?
Ariana
Lots of hope and masking tape
Thespartann
Peperoni with salad
Lucía
if voice messages are not allowed, i'm out
Lucía
so please confirm
Luigi
Can someone help me a moment in private messages? I'm a c++ beginner, please
Ariana
Just send here
klimi
Why not here
Luigi
I think it's embarassing, since it's something too easy for you ahah
Luigi
I should have the sum of all the multiples of 3 and 5, what's wrong here?
🐰🐾 سمیه
Just send here
Some people come into PV and are rude.
MᏫᎻᎯᎷᎷᎬᎠ
Gh
I should have the sum of all the multiples of 3 and 5, what's wrong here?
I didn't read all the code..but you should intialize sum Sum=0
Luigi
Right, forgot that
H22133_Vaibhav Deshmukh
Hii Rose
H22133_Vaibhav Deshmukh
Looking to have a great learnings with you all.
Luigi
Ahah
Luigi
Wait
Luigi
Luigi
It's like this right now, but when i start the program it doesn't show anything
Ariana
m++ would go on forever
Ariana
until it overflows and hits 0
Ariana
if(m%3==0) is also a lot easier
Luigi
Mh okay, but what to do with the m++?
Luigi
I should get the m till 1000
Ariana
Try to print from 1 to 100 first that may be easier
Luigi
Without m++ or?
Luigi
I should do that with "for"?
Ariana
Try with while
Luigi
Ok
Luigi
So }while (m<=100);
Ariana
.
Ariana
So }while (m<=100);
Yeah smt like that
Luigi
Okay it worked
Ariana
It’s easier to just use while
Luigi
Thank you
Ariana
Don’t bother with do while
Luigi
I made it with do while
Luigi
So i can remove the do?
Luigi
And do it just with while?
Ariana
yeah
Ariana
Just while(condition){code}
Luigi
Oh nvm, did it
BinaryByter
good job
BinaryByter
im proud of you
Luigi
Ahah
BinaryByter
❤️
BinaryByter
Rose, are you still single?
Anonymous
Hello
Anonymous
Anybody else
klimi
Hi
BinaryByter
Anonymous
Hi
Anonymous
I have a question
klimi
Are you a hacker?
klimi
I'm scared
Anonymous
No
klimi
Okay
Anonymous
It's only my profile picture
klimi
Okay
Luigi
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
BinaryByter
Luigi
mh
Luigi
how could i group the numbers 2 to 2?
BinaryByter
?
Luigi
i have to do the sum between the 1st and 2nd number, the 2nd and 3rd, 3rd and 4th
Luigi
mmh
Luigi
with "a,b" you mean the 2 inputs? or the code is like that?
Luigi
if it's like that, i've never done that before ahah
Anonymous
@admin
Dima
wtf lol
Anonymous
if it's like that, i've never done that before ahah
a and b are variables, a is the current number and b is the previous one If a is 5 and the previous number is 3, the iteration between a(5) and b(3) is a,b = 5+3,5 which is 8 and 5 and so on